Skip to content

Commit e692b2f

Browse files
committed
Fix up IO-to-pin iterable lists.
1 parent b2adb4c commit e692b2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyduinoincludes/io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
# User-controlled LED
3636
LED_PIN = 18
3737

38-
# List of pin assignments that can be iterated over in GPIO-order (i.e. GPIO 0 is 16, GPIO 1 is 17, etc...)
39-
GPIO_TO_IO_LIST = (16,17,20,5,23,6,7,12,0,19,21,37,4,22,9,8)
38+
# List of pin assignments that can be iterated over in Pyduino-pin-order (i.e. D0 is 16, D1 is 17, etc...)
39+
DIGITAL_TO_IO_LIST = (16, 17, 20, 5, 23, 6, 7, 12, 0, 19, 21, 37, 4, 22, 9, 8)
40+
ANALOG_LIST = (A0, A1, A2, A3, A4, A5)
4041

0 commit comments

Comments
 (0)