For M5Stack UNITCAM and ESP-IDF Programming Framework, I did post infos here:
https://forum.m5stack.com/topic/3788/unitcam-idf-use-many-versions-of-code

Next, I will show how to do the same for Arduino IDE Framework...

Valter