Skip to content

Commit 44fb943

Browse files
committed
Add LED_PIN definition.
1 parent 0f4a843 commit 44fb943

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Pins can be referenced as follows:
4343
| Digital | D0 - D13 |
4444
| Analog | A0 - A5 |
4545
| i2c | SDA, SCL |
46+
} LED pin | LED_PIN |
4647

4748
Setting up the SPI pins is very simple, too:
4849

pyduinoincludes/io.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
A4 = 6
3232
A5 = 7
3333

34+
# User-controlled LED
35+
LED_PIN = 18
36+
3437
# List of pin assignments that can be iterated over in GPIO-order (i.e. GPIO 0 is 16, GPIO 1 is 17, etc...)
3538
GPIO_TO_IO_LIST = (16,17,20,5,23,6,7,12,0,19,21,37,4,22,9,8)
3639

0 commit comments

Comments
 (0)