Skip to content

Commit 23cbb07

Browse files
committed
use i2c variable instead of board.I2C()
1 parent 9944e45 commit 23cbb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nunchuk_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
99
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
10-
nc = adafruit_nunchuk.Nunchuk(board.I2C())
10+
nc = adafruit_nunchuk.Nunchuk(i2c)
1111

1212
while True:
1313
x, y = nc.joystick

0 commit comments

Comments
 (0)