add variant init code for the feather s2 tft (#6447)

This commit is contained in:
Limor "Ladyada" Fried
2022-03-28 05:58:25 -04:00
committed by GitHub
parent 8ee5f0a11e
commit ab34321a16

View File

@ -31,7 +31,12 @@ extern "C" {
// Initialize variant/board, called before setup()
void initVariant(void)
{
// This board has power control pins, and we must set them to output and high
// in order to enable the NeoPixels, TFT & I2C
pinMode(NEOPIXEL_POWER, OUTPUT);
digitalWrite(NEOPIXEL_POWER, HIGH);
pinMode(TFT_I2C_POWER, OUTPUT);
digitalWrite(TFT_I2C_POWER, HIGH);
}
}