The goal of this experiment was to:
- Port the arduino breath/blink led to the esp-idf framework
- Use esp-idf task
- Objectifying task creation in FreeRTOS
I couldn’t figure out how to get my led to breathe as smoothly as it did with the Arduino framework. To figure it out I:
- Cloned and build the Arduino framework
- Reversed engineer how the Arduino framework led channel is implemented
- Created my own LedChannel class based on the Arduino C implementation
- note the class is a very poor attempt at doing so. I just ported the bare minimum for my app to work.
I simply followed the instructions from that wonderful post: Objectifying task creation in FreeRTOS – Electrónica y Sistemas Embebidos OBJECTIFYING TASK CREATION IN FREERTOS (II) – Electrónica y Sistemas Embebidos
Clone this repo
# Follow the idf.py instructions
idf.py build
idf.py flash
idf.py monitor