Skip to content

Commit faba124

Browse files
committed
clean up nunchuk_simpletest.py
1 parent e548db1 commit faba124

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/nunchuk_simpletest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
print("joystick = {},{}".format(x, y))
1414
print("accceleration ax={}, ay={}, az={}".format(ax, ay, az))
1515

16-
buttons = nc.buttons
17-
if buttons.C:
16+
if nc.buttons.C:
1817
print("button C")
19-
if buttons.Z:
18+
if nc.buttons.Z:
2019
print("button Z")
2120
time.sleep(0.5)

0 commit comments

Comments
 (0)