Search found 4 matches

by LanManMike
Tue Jan 15, 2019 10:29 am
Forum: ESP32 Arduino
Topic: Tasks and LED Strips
Replies: 8
Views: 631

Re: Tasks and LED Strips

Yes, I think boarchuz is absolutely correct. The first definition of the delay() function (above) I found by Internet searching. I have just tried highlighting delay() in Visual Studio Code (Platform IO) and I could go to the definition of the delay function, which is: void delay(uint32_t ms) { vTas...
by LanManMike
Sun Jan 13, 2019 2:46 am
Forum: ESP32 Arduino
Topic: Tasks and LED Strips
Replies: 8
Views: 631

Re: Tasks and LED Strips

Hi All, I have just been looking into the delay() function. The code I have found in the Arduino Core is: void delay(unsigned long ms) { uint32_t start = micros(); while (ms > 0) { yield(); while ( ms > 0 && (micros() - start) >= 1000) { ms--; start += 1000; } } } As you can see, whilst the function...
by LanManMike
Sat Jan 12, 2019 11:54 am
Forum: ESP32 Arduino
Topic: Tasks and LED Strips
Replies: 8
Views: 631

Re: Tasks and LED Strips

Thanks heaps for the replies. Sorry that my initial post didn't include enough details. The program sets up 4 tasks, each of which will change between a Red, Orange and Green LED on the Dotstar Strip in the same way a traffic light works. The program I have listed in the original post works quite we...
by LanManMike
Fri Jan 11, 2019 4:40 am
Forum: ESP32 Arduino
Topic: Tasks and LED Strips
Replies: 8
Views: 631

Tasks and LED Strips

Hi All, I have been playing around with Strip LEDs (AM103 style) on the ESP32 DEVKITC. To do this I have been using PtformIO (based on Visual Studio Code). This has worked well and I have has some good fun with the LED strips.However, I have found some issues when running tasks to update the LED Str...

Go to advanced search