platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
856 stars 571 forks source link

espidf arduino blink example #1310

Closed timmornYE closed 4 months ago

timmornYE commented 4 months ago

https://github.com/platformio/platform-espressif32/blob/b0a7f56bcde9fa332b40111b1423482d8f7cbc77/examples/espidf-arduino-blink/src/Blink.cpp#L65

Does this line make sense? void blink_task(void *pvParameter) has infinite loop, so Arduino void loop() will never be called.

valeros commented 4 months ago

Hi @timmornYE, blink_task is just an example how to start a new task, the loop function is still being executed in the loopTask task implemented directly in the framework.