diff options
author | sago35 <[email protected]> | 2021-08-31 21:16:28 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-09-01 20:55:35 +0200 |
commit | ca39bc9f355c32d6a2ed2d2b5056e7e3f8b7e58d (patch) | |
tree | e9105d391886d34645045840d6d681911025c476 | |
parent | f985f2c376da5413a4aad44e09ca8ba1d97e7a89 (diff) | |
download | tinygo-ca39bc9f355c32d6a2ed2d2b5056e7e3f8b7e58d.tar.gz tinygo-ca39bc9f355c32d6a2ed2d2b5056e7e3f8b7e58d.zip |
machine/feather-rp2040: add pin name definition for feather
-rw-r--r-- | src/machine/board_feather_rp2040.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/machine/board_feather_rp2040.go b/src/machine/board_feather_rp2040.go index 58816f05c..9226760bd 100644 --- a/src/machine/board_feather_rp2040.go +++ b/src/machine/board_feather_rp2040.go @@ -9,6 +9,28 @@ const ( xoscFreq = 12 // MHz ) +// GPIO Pins +const ( + D4 = GPIO6 + D5 = GPIO7 + D6 = GPIO8 + D9 = GPIO9 + D10 = GPIO10 + D11 = GPIO11 + D12 = GPIO12 + D13 = GPIO13 + D24 = GPIO24 + D25 = GPIO25 +) + +// Analog pins +const ( + A0 = GPIO26 + A1 = GPIO27 + A2 = GPIO28 + A3 = GPIO29 +) + // I2C Pins. const ( I2C0_SDA_PIN = GPIO24 |