Hello team I have been working on a extension of eshkrab on the parallel

When I put the addLeds even before WiFi.begin() the esp32 crashes…

@Robin_Gerritsen why do you have your led declaration in the Task1 ?
initiate your leds in the setup function.

I tried everything
I thought maybe now it could work, but still nothing

I found it maybe! :smiley: FastLED.show() gives the problem…
Only now, how to solve this…

@Robin_Gerritsen try to initiate only one LED STRIP
I wonder if you can have different lengths.
void setup() {

Serial.begin(115200);
pinMode(5, OUTPUT); // set the LED pin mode

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
time_t t = 1516719890 + 3600;
setTime(t);
// ArduinoOTA.begin();

delay(10);
Serial.println("#############################\n");
Serial.println(versionCode);

// We start by connecting to a WiFi network

Serial.println("");
Serial.println(“WiFi connected.”);
Serial.println("IP address: ");
Serial.println(WiFi.localIP());

Serial.println(“End of Setup”);

FastLED.addLeds<NEOPIXEL, DATA_HOURS>(leds_hours, NUM_HOURS);
// FastLED.addLeds<NEOPIXEL, DATA_MINUTES>(leds_minutes, NUM_MINUTES);
// FastLED.addLeds<NEOPIXEL, DATA_SECONDS>(leds_seconds, NUM_SECONDS);
// FastLED.addLeds<NEOPIXEL, DATA_TEMP>(leds_temp, NUM_TEMP);
// FastLED.addLeds<NEOPIXEL, DATA_DATE>(leds_date, NUM_DATE);

}

and if it works try to put for each led strip the same length =max(all strips) in your case 90
do not forget the change

CRGB leds_hours[NUM_HOURS];
CRGB leds_minutes[NUM_MINUTES];
CRGB leds_seconds[NUM_SECONDS];
CRGB leds_temp[NUM_TEMP];
CRGB leds_date[NUM_DATE];

They are all different lengths…

With one strip, it still crashes

Is it possible the bit banging can cause this?

have you tried just a simple program with only creating one set of led and try to fastLed.show()

Yeah, this works, but when I place http://wifi.Begin() after show() it crashes.
And if I do something to get information wirelessly after I only used show() I one time it does the same…

where did you get your wifi library ?

Esp32 official library

could you add
#define FASTLED_ALLOW_INTERRUPTS 0
just before
#include “fastled.h” ?

Thank you! This works, but now the leds are the wrong color or going on while they are supposed to be off…

@Robin_Gerritsen that is the issue with esp32 implementation is really sensible to interrupts.
what are you displaying on the leds ?
can you share the code you are currently using ?

Or you can try this FastLED library https://github.com/samguyer/FastLED it relies on other principle should be less subject to interupts

Thanks, I will share the current code once I am home. Maybe tonight. Otherwise tomorrow. It will be a big digital clock with segments of 6 leds

Digital clock frame https://imgur.com/gallery/O6YzW

@Yves_BAZIN Is there a way to use this library for only this sketch? Because I don’t want to mess up my other sketches by using another library…