patbonecrusher / esp-idf-button-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

esp-idf: breathing led using c++

Rationals

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

The port

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.

Objecting task creation in FreeRTOS

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

Instructions

Clone this repo

# Follow the idf.py instructions
idf.py build
idf.py flash
idf.py monitor

About


Languages

Language:C++ 98.4%Language:Makefile 1.6%