diff options
author | Daniel Esteban <[email protected]> | 2019-02-11 16:33:10 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-02-11 16:33:10 +0100 |
commit | 0a3dbbd1cb566e787b7530da1311de25d8eff25c (patch) | |
tree | b0a16badbd78967f19001b727d6de10c9ae0f229 | |
parent | 4c29f0fdb68d8a3980a64cf4d7790efd779f7e71 (diff) | |
download | tinygo-0a3dbbd1cb566e787b7530da1311de25d8eff25c.tar.gz tinygo-0a3dbbd1cb566e787b7530da1311de25d8eff25c.zip |
Added regular pins const for bbc:microbit (#181)
* Added "GPIO/Analog" pins const for bbc:microbit
-rw-r--r-- | src/machine/board_microbit.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/machine/board_microbit.go b/src/machine/board_microbit.go index 8e855dd63..dfd0ebb55 100644 --- a/src/machine/board_microbit.go +++ b/src/machine/board_microbit.go @@ -43,6 +43,27 @@ const ( SPI0_MISO_PIN = 22 // P14 on the board ) +// GPIO/Analog pins +const ( + P0 = 3 + P1 = 2 + P2 = 1 + P3 = 4 + P4 = 5 + P5 = 17 + P6 = 12 + P7 = 11 + P8 = 18 + P9 = 10 + P10 = 6 + P11 = 26 + P12 = 20 + P13 = 23 + P14 = 22 + P15 = 21 + P16 = 16 +) + // LED matrix pins const ( LED_COL_1 = 4 |