I’m having trouble with an error.
I’m making code for 1 addressable led to do ‘breathing rgb’ this works on an arduino, but i would’ve liked to use a NodeMCU ESP8266 in order to control it with mqtt.
The led doesn’t want to turn off when i send 0.
And when i press 1 the led only does what I want it to do for like 2 sec and then crashes.
I’d like to know how to turn the led off and how to get a loop without it crashing.
Code and serial monitor are attached
RGBBreathingESP8266.ino (2.52 KB)