Giter VIP home page Giter VIP logo

max5481's Introduction

MAX5481

Arduino Library for the Maxim MAX5481-5484 Digital Potentiometers

This library implements functions to control the MAX5481 digital Potentiometer(s) using SPI

See the Maxim Integrated datasheet for details MAX5481

Class, Methods and Defines

Defines

MAX5481_MAJOR

MAX5481_MINOR

MAX5481_PATCH

Description

These defines can be used to determine the current version of the library being used in your code.

Constructor

MAX5481(int SSPIN)

Description

Instantiation of the Digital Potentiometer sets the Slave Select Pin. During the instantiation of the library the Slave Select Pin is pulled High

Syntax

MAX5481 myDpot(SSPIN);

Parameters

SSPIN: (parameter required) Slave Select Pin of the Digital Potentiometer on the SPI bus

Return

None

Example
// Instantiation of MAX5481 Digital Potentiometer
MAX5481 myDpot(11);

Methods

begin()

Description

Initializes the Digital Pot, setting the Slave Select Pin High

Syntax

begin();

Parameters

None

Return

None

Example
// Initializes the the MAX5481, pulling the Chip Select ping High
myDpot.begin();

setWiper(int value)

Description

Sets the wiper to the given value

Syntax

setWiper(value);

Parameters

value: an integer value between 0-1024

Return

None

Example
// Sets the Digital Potentiometer wiper to a given value
setWiper(wiper_value);

writeWiper(int value)

Description

Writes the current value of the wiper to NVM (Non-Volitle Memory)

Syntax

writeWiper();

Parameters

None

Return

None

Example
// Sets the Digital Potentiometer wiper to a given value
writeWiper();

readWiper(int value)

Description

Sets the value in NVM into the wiper

Syntax

readWiper();

Parameters

None

Return

None

Example
// Moves the value in NMV into the wiper
readWiper();

Attributions

This library was inspired by previous works done by Gabriel Staples and Others.

http://forum.arduino.cc/index.php?topic=242376.0

http://www.electricrcaircraftguy.com/2016/11/MAX5481-DigitalPotentiometer.html

Contribute

If you like and use this library please consider making a small donation using PayPal

max5481's People

Contributors

rfchapman avatar robertfchapman avatar

Stargazers

Gabriel Staples avatar Max Campbell avatar

max5481's Issues

@robertfchapman you're welcome, but you closed the pull request instead of merging it, so the problem is still there:

@robertfchapman you're welcome, but you closed the pull request instead of merging it, so the problem is still there:
https://github.com/robertfchapman/MAX5481/blob/master/Library.properties

Originally posted by @per1234 in #1 (comment)

@per1234, I apologize for closing the pull request, I'm still a bit of a newbie when it comes to using github tools. I'm getting better. If you know how I can re-open the request and merge it I will. Again, I thank you for your contribution and I would like for you to get credit for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.