Skip to content

Commit 17de6eb

Browse files
committed
Changing to event // 10
Ohh yeah I like that, thanks! This example is more to show a good example for matrixes so I'd rather have the most pythonic way.
1 parent 9a828a0 commit 17de6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tca8418_3x4_OLED.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
event = keyevent & 0x7F
7878
event -= 1
7979
# figure out row
80-
row = int(event / 10)
80+
row = event // 10
8181
# figure out column
8282
col = event % 10
8383
# print event type first

0 commit comments

Comments
 (0)