MCP41_Simple
Arduino Library for the MCP41 Series Of 8 Bit Digital Potentiometers
/bigdrive/home/boffin/Arduino-1.6/libraries/MCP41_Simple/MCP41_Simple.h
1 
25 #include <SPI.h>
26 
28 {
29  protected:
30  uint8_t _chipSelectPin;
31  SPIClass *_spiBus;
32 
33  public:
34  // In case you may have multiple SPI busses, you can supply one
35  // on object creation, otherwise it will use the default
36  MCP41_Simple() ;
37  MCP41_Simple(SPIClass &spiBus );
38 
39  void begin (uint8_t chipSelectPin);
40  void setWiper(uint8_t value);
41 
42  void shutdownMode();
43 };
void shutdownMode()
Put the potentiometer in shutdown mode, output B gets tied to the Wiper, and output A is tri-stated...
Definition: MCP41_Simple.cpp:79
MCP41_Simple()
Copyright (C) 2017 James Sleeman.
Definition: MCP41_Simple.cpp:35
void setWiper(uint8_t value)
Set the wiper position of the potentiometer, to a position between 0 and 255.
Definition: MCP41_Simple.cpp:68
Copyright (C) 2017 James Sleeman.
Definition: MCP41_Simple.h:27
void begin(uint8_t chipSelectPin)
Begin communication to the potentiometer using the supplied pin as it's chipSelect.
Definition: MCP41_Simple.cpp:57