Skip to content

M5Stack Core 2 demo using plain ESP IDF and the M5Unified library

Notifications You must be signed in to change notification settings

hp27596/m5core2idfdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M5Stack Core 2 demo using plain ESP IDF and the M5Unified library

This is a working demo project for the M5Stack Core 2, using plain ESP IDF and the M5Unified library as the main interface.

Tested on ESP IDF v4.4.2, as the M5Unified library is not updated on ESP IDF v5 yet.

The library’s interface seems to all be working as intended, including: sensors, buttons and graphics.

Notable stuff:

  • This has to be included in the main folder’s CMakeLists.txt if you want to use the M5Unified library. Also your main file needs to be in .cpp.
set(SOURCES main.cpp)
  • Freertos tickrate need to be set to 1000 in your sdkconfig file. Run idf.py menuconfig and set it in Component config -> FreeRTOS -> Tickrate.
  • This loop is needed for the library to work as it’s intended. Everything that’s using the M5Unified interface should be in this loop.
for (;;) {
    vTaskDelay(1);
    M5.update();
}

About

M5Stack Core 2 demo using plain ESP IDF and the M5Unified library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published