How to Multitask with FreeRTOS (ESP32 + Arduino series)



Run multiple tasks on the ESP32 with FreeRTOS. For instance: blinking two LED's at different intervals or increment two counters at the same time. A FreeRTOS task is nothing more than a standard C (or C++) function. Nothing fancy, very easy! Most ESP32's have a dual-core processor, so FreeRTOS will balance your tasks across cores. This technique also works for single-core versions of the ESP32. In that case, FreeRTOS will rapidly switch between tasks, giving the impression that it's multitasking. ⚡️Other videos in this series:

(Everything you need to know about programming the ESP32 by using the Arduino Framework) 🌍 Social
Twitter: https://twitter.com/Savjee
Facebook: https://facebook.com/Savjee
Blog: https://savjee.be ❤️ Become a Simply Explained member: https://www.youtube.com/channel/UCnxrdFPXJMeHru_b4Q_vTPQ/join 💌 Newsletter: http://newsletter.savjee.be (no more than once a month) https://www.youtube.com/watch?v=WQGAs9MwXno

Leave a Reply

Your email address will not be published. Required fields are marked *