aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine
diff options
context:
space:
mode:
authorPatrick Lindsay <[email protected]>2024-03-13 21:29:55 -0500
committerRon Evans <[email protected]>2024-03-27 11:55:25 +0100
commitb6fdbee14e79bacc091ab805a169c551f140f33a (patch)
tree29a2bf39ac4af32f51dfc5827c54e52b83010857 /src/machine
parenta5ceb793be150f3bef1cb7bb9a3faa63a3a65d90 (diff)
downloadtinygo-b6fdbee14e79bacc091ab805a169c551f140f33a.tar.gz
tinygo-b6fdbee14e79bacc091ab805a169c551f140f33a.zip
Begin implementing support for Adafruit ESP32 Feather V2
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/board_adafruit-esp32-feather-v2.go41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/machine/board_adafruit-esp32-feather-v2.go b/src/machine/board_adafruit-esp32-feather-v2.go
new file mode 100644
index 000000000..2802265c7
--- /dev/null
+++ b/src/machine/board_adafruit-esp32-feather-v2.go
@@ -0,0 +1,41 @@
+//go:build adafruit_esp32_feather_v2
+
+package machine
+
+const GPIO20 Pin = 20
+
+const (
+ IO0 = GPIO0
+ IO2 = GPIO2
+ IO4 = GPIO4
+ IO5 = GPIO5
+ IO7 = GPIO7
+ IO8 = GPIO8
+ IO12 = GPIO12
+ IO13 = GPIO13
+ IO14 = GPIO14
+ IO15 = GPIO15
+ IO19 = GPIO19
+ IO20 = GPIO20
+ IO21 = GPIO21
+ IO22 = GPIO22
+ IO25 = GPIO25
+ IO26 = GPIO26
+ IO27 = GPIO27
+ IO32 = GPIO32
+ IO33 = GPIO33
+ IO34 = GPIO34
+ IO35 = GPIO35
+ IO36 = GPIO36
+ IO37 = GPIO37
+ IO38 = GPIO38
+ IO39 = GPIO39
+)
+
+// Built-in LEDs and Button
+const (
+ NEOPIXEL = IO0
+ NEOPIXEL_I2C_POWER = IO2
+ LED = IO13
+ BUTTON = IO38
+)