ds3502_blinka_simpletest.py
1 from time import sleep 2 import board 3 import adafruit_ds3502 4 5 i2c = board.I2C() 6 ds3502 = adafruit_ds3502.DS3502(i2c) 7 8 # As this code runs, measure the voltage between ground and the RW (wiper) pin 9 # with a multimeter. You should see the voltage change with each print statement. 10 while True: 11 ds3502.wiper = 127 12 print("Wiper value set to 127") 13 sleep(5.0) 14 15 ds3502.wiper = 0 16 print("Wiper value set to 0") 17 sleep(5.0) 18 19 ds3502.wiper = 63 20 print("Wiper value set to 63") 21 sleep(5.0)