mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-30 20:40:59 +02:00
add variant init code for the feather s2 tft (#6447)
This commit is contained in:
committed by
GitHub
parent
8ee5f0a11e
commit
ab34321a16
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user