adafruit_ds3502
¶
CircuitPython library for the Maxim DS3502 I2C Digital Potentionmeter
- Author(s): Bryan Siepert
Implementation Notes¶
Hardware:
Software and Dependencies:
- Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
- Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
-
class
adafruit_ds3502.
DS3502
(i2c_bus, address=40)¶ Driver for the DS3502 I2C Digital Potentiometer.
Parameters: - i2c_bus (I2C) – The I2C bus the DS3502 is connected to.
- address – The I2C device address for the sensor. Default is
0x40
.
-
set_default
(default)¶ Sets the wiper’s default value and current value to the given value
Parameters: new_default – The value from 0-127 to set as the wiper’s default.
-
wiper
¶ The value of the potentionmeter’s wiper.
Parameters: wiper_value – The value from 0-127 to set the wiper to.