Skip to content

Commit ab34321

Browse files
authored
add variant init code for the feather s2 tft (#6447)
1 parent 8ee5f0a commit ab34321

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

variants/adafruit_feather_esp32s2_tft/variant.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ extern "C" {
3131
// Initialize variant/board, called before setup()
3232
void initVariant(void)
3333
{
34-
34+
// This board has power control pins, and we must set them to output and high
35+
// in order to enable the NeoPixels, TFT & I2C
36+
pinMode(NEOPIXEL_POWER, OUTPUT);
37+
digitalWrite(NEOPIXEL_POWER, HIGH);
38+
pinMode(TFT_I2C_POWER, OUTPUT);
39+
digitalWrite(TFT_I2C_POWER, HIGH);
3540
}
3641

3742
}

0 commit comments

Comments
 (0)