I was able to get a simple example of turning the stick LED on and off with a slider switch. You need to alter the coordinates and size of the qr in order to make it visible on the screen
[image: 1583288007416-screen-shot-2020-03-04-at-13.11.55.png]
Response is a little slow though, you may want to try IFTT or try to use http request and control from the browser or make an app with mit app inventor, I made a guide here a while ago, It's using arduino but I hope to do an updated version once I get an android phone. https://www.hackster.io/lukasmaximus89/m5stack-and-mit-app-inventor-47bd32