diff --git a/MCP4461/MCP4461.cpp b/MCP4461/MCP4461.cpp index 4ad0d4a..d58836d 100644 --- a/MCP4461/MCP4461.cpp +++ b/MCP4461/MCP4461.cpp @@ -4,7 +4,7 @@ Library to control the MCP4461 Digital Potentiometer over I2C. http://ww1.microchip.com/downloads/en/DeviceDoc/22265a.pdf This library does not fully implement the functionality of -the MCP4461 – just the basics of changing the wiper values. +the MCP4461 just the basics of changing the wiper values. Note this is currently configured to use the second I2C bus on the Due: Wire1 The master joins the bus with the default address of 0 @@ -174,7 +174,7 @@ void MCP4461::setNonVolatileWipers(uint16_t wiper_value){ } //return the value for a specific wiper -uint16_t MCP4461::getNonVolatileWiper(uint8_t wiper){ +uint16_t MCP4461::getNonVolatileWiper(uint8_t wiper) const{ uint16_t ret = 0; uint16_t c_byte =0; switch (wiper) { diff --git a/MCP4461/MCP4461.h b/MCP4461/MCP4461.h index 6b3e85c..a7d4396 100644 --- a/MCP4461/MCP4461.h +++ b/MCP4461/MCP4461.h @@ -40,7 +40,7 @@ class MCP4461{ void setNonVolatileWipers(uint16_t); void toggleWiper(uint8_t); //NOT YET IMPLEMENTED uint16_t getVolatileWiper(uint8_t); - uint16_t getNonVolatileWiper(uint8_t); + uint16_t getNonVolatileWiper(uint8_t) const; uint16_t getStatus(); private: