未验证 提交 ab34321a 编写于 作者: L Limor "Ladyada" Fried 提交者: GitHub

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

上级 8ee5f0a1
......@@ -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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册