Skip to content

Commit 54218dc

Browse files
committed
add neopix to esppassthru
1 parent 184949e commit 54218dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ unsigned long baud = 115200;
7171
#define ESP32_RESETN 5 // Reset pin
7272
#define ESP32_GPIO0 -1 // Not connected
7373
#define NEOPIXEL_PIN 8
74-
#elif defined(ADAFRUIT_PYPORTAL)
74+
#endif
75+
76+
#if defined(ADAFRUIT_PYPORTAL)
7577
#define NEOPIXEL_PIN 2
78+
#elif defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
79+
#define NEOPIXEL_PIN 40
7680
#endif
7781

7882
Adafruit_NeoPixel pixel = Adafruit_NeoPixel(1, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800);

0 commit comments

Comments
 (0)