We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617483e commit 785c377Copy full SHA for 785c377
examples/pca9554_simpletest.py
@@ -12,10 +12,10 @@
12
i2c = board.I2C()
13
tft_io_expander = dict(board.TFT_IO_EXPANDER)
14
15
-pcf = adafruit_pca9554.PCA9554(i2c, address=tft_io_expander['i2c_address'])
+pcf = adafruit_pca9554.PCA9554(i2c, address=tft_io_expander["i2c_address"])
16
button_up = pcf.get_pin(board.BTN_UP)
17
button_up.switch_to_input(pull=digitalio.Pull.UP)
18
19
while True:
20
print(button_up.value)
21
- time.sleep(0.01) # debounce
+ time.sleep(0.01) # debounce
0 commit comments