@minecraftapks-0 Sounds very interesting and could be a great idea. Look into how it works on the Raspberry pi.
Both the Pi and the M5Stack use Micropython as the base programming language so it could be possible with minimal porting.