From b6fdbee14e79bacc091ab805a169c551f140f33a Mon Sep 17 00:00:00 2001 From: Patrick Lindsay Date: Wed, 13 Mar 2024 21:29:55 -0500 Subject: Begin implementing support for Adafruit ESP32 Feather V2 --- src/machine/board_adafruit-esp32-feather-v2.go | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/machine/board_adafruit-esp32-feather-v2.go (limited to 'src/machine') 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 +) -- cgit v1.2.3