Skip to content

Commit e70a1ca

Browse files
committed
enable neopixel
1 parent 87f9e43 commit e70a1ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: variants/adafruit_qtpy_esp32s2/variant.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@
2525

2626
#include "esp32-hal-gpio.h"
2727
#include "pins_arduino.h"
28+
#include "Arduino.h"
29+
#include "Wire.h"
2830

2931
extern "C" {
3032

3133
// Initialize variant/board, called before setup()
3234
void initVariant(void)
3335
{
34-
36+
// This board has a power control pin, and we must set it to output and high
37+
// in order to enable the NeoPixels.
38+
pinMode(NEOPIXEL_POWER, OUTPUT);
39+
digitalWrite(NEOPIXEL_POWER, HIGH);
3540
}
3641

3742
}

0 commit comments

Comments
 (0)