File tree Expand file tree Collapse file tree
Adafruit_ESP32_Arduino_Demos/ESP32_sleeptest
Feather_ESP32_V2_FactoryTest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ void loop() {
3131 delay (1000 );
3232
3333 disableInternalPower ();
34+ LEDoff ();
3435 esp_sleep_enable_timer_wakeup (1000000 ); // 1 sec
3536 esp_light_sleep_start ();
3637 // we'll wake from light sleep here
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ void setup() {
2121 TB.neopixelPin = NEOPIXEL_PIN;
2222 TB.neopixelNum = 1 ;
2323 TB.begin ();
24+ TB.setColor (0xFF0000 );
25+ delay (50 );
26+ TB.setColor (0x00FF00 );
27+ delay (50 );
28+ TB.setColor (0x0000FF );
2429
2530 // Set WiFi to station mode and disconnect from an AP if it was previously connected
2631 WiFi.mode (WIFI_STA);
Original file line number Diff line number Diff line change 88#include < WiFi.h>
99extern Adafruit_TestBed TB;
1010
11- #define NEOPIXEL_PIN 2
11+ #define PIN_NEOPIXEL 2
1212
1313void setup () {
1414 Serial.begin (115200 );
1515 // while (! Serial) delay(10);
1616
1717 Serial.println (" QT Py ESP32 C3!" );
1818
19- TB.neopixelPin = NEOPIXEL_PIN ;
19+ TB.neopixelPin = PIN_NEOPIXEL ;
2020 TB.neopixelNum = 1 ;
2121 TB.begin ();
2222 TB.setColor (0xFF0000 );
You can’t perform that action at this time.
0 commit comments