Search found 1 match
- Sun Oct 25, 2020 2:08 pm
- Forum: General Discussion
- Topic: ESP32 CPU load % display without special configuration.
- Replies: 9
- Views: 20574
Re: ESP32 CPU load % display without special configuration.
#include <Arduino.h> extern "C" { #include "freertos/FreeRTOS.h" #include "freertos/timers.h" #include "freertos/task.h" } const int CPU0_LOAD_START_BIT = BIT0; const int CPU1_LOAD_START_BIT = BIT1; EventGroupHandle_t cpu_load_event_group; ulong idleCnt=0; void idleCPU0Task(void *parm) { ulong now, ...