Works with various ESP-IDF versions

This commit is contained in:
Brian Bulkowski
2020-06-27 23:10:57 -07:00
parent 355c5d8fb0
commit 4dd628d7d7
8 changed files with 3574 additions and 63 deletions

View File

@@ -157,11 +157,15 @@ void app_main() {
printf(" entering app main, call add leds\n");
// the WS2811 family uses the RMT driver
FastLED.addLeds<LED_TYPE, DATA_PIN>(leds, NUM_LEDS);
// this is a good test because it uses the GPIO ports
// this is a good test because it uses the GPIO ports, these are 4 wire not 3 wire
//FastLED.addLeds<APA102, 13, 15>(leds, NUM_LEDS);
printf(" set max power\n");
// I have a 2A power supply, although it's 12v
FastLED.setMaxPowerInVoltsAndMilliamps(5,2000);
// change the task below to one of the functions above to try different patterns
printf("create task for led blinking\n");
xTaskCreatePinnedToCore(&blinkLeds_simple, "blinkLeds", 4000, NULL, 5, NULL, 0);
}