Begin implementing support for Adafruit ESP32 Feather V2

This commit is contained in:
Patrick Lindsay
2024-03-13 21:29:55 -05:00
committed by Ron Evans
parent a5ceb793be
commit b6fdbee14e
2 changed files with 45 additions and 0 deletions
@@ -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
)
+4
View File
@@ -0,0 +1,4 @@
{
"inherits": ["esp32"],
"build-tags": ["adafruit_esp32_feather_v2"]
}