urbanze wrote:To create a "CPU LOAD" display, you can take advantage of RTOS. Adding a priority 0 task (which indicates when CPU is in IDLE, delay / etc), we can start playing. However it is just a mediocre and basic solution.
There are functions that return the value of free HEAP, such as ESP.getfreeheap () (something similar to this in the Arduino core). If the total is ~ 520kB, we can take the percentage.
Hi urbanze,
Thanks for your brilient "Idle Task" solusion for CPU load indication! I'll try it out. But if you have a example of its implementation, please do let me know, I believe it will save me a lot time to solve this problem.
About memory:
Because I'm really new in this nearly bare bone level, I did some google about this topic:
stack vs heap, but still didn't get the core idea about what you said. Is that means all I got from
"free Heap" is all the free memories from the 512KB?
Cheers
Su Gao