Skip to content

Commit d80e9b6

Browse files
authored
Merge pull request #3172 from adafruit/metro-m4-airlift-shield
Metro M4 Airlift Shield support
2 parents b084d43 + 1dbf7c3 commit d80e9b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Binary file not shown.

Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ unsigned long baud = 115200;
6767
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
6868
#define ESP32_GPIO0 -1
6969
#define NEOPIXEL_PIN 8
70+
#elif defined(ADAFRUIT_METRO_M4_EXPRESS) || defined(ARDUINO_SAMD_METRO_M4)
71+
#define SerialESP32 Serial1
72+
#define SPIWIFI SPI
73+
#define SPIWIFI_SS 10 // AirLift CS
74+
#define ESP32_RESETN 5 // AirLift RESET
75+
#define SPIWIFI_ACK 7 // AirLift BUSY / READY
76+
#define ESP32_GPIO0 6 // AirLift GPIO0 (boot)
77+
#define NEOPIXEL_PIN 40 // Metro M4 onboard NeoPixel
7078
#elif !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
7179
// Don't change the names of these #define's! they match the variant ones
7280
#define SerialESP32 Serial1

0 commit comments

Comments
 (0)