Sorry! @ajb2k3 I have not forgot about this, I am a bit withou time, a lot to do for work right now!
But I'll sketch up an example soon!
Thank you for the help
There is ENV sensor object. But it does not work, because there is no dht12 and bmp280 modules.
I am not sure if developers test their devices on micropython.
May be, it will be better to use base micropython and add m5 drivers?
Hi @Luca-Innocenti I presume you mean twitter? I haven't heard of tweepy but I think a good way to do this would be to use the MQTT blocks if you are using UIFlow and then connect to a service like IFTT or Thingspeak with webhooks to connect to twitter. To add new libraries to the m5stack you can use Ampy or the M5stack plugin for VScode. See one of the two following videos for how to get setup.
Ampy https://www.youtube.com/watch?v=rvP3GixWG1Y&t=109s
I placed my stuff into the /apps folder, e.g. /apps/demo.py. On startup you can then press the button in the middle to enter the app list, choose your app demo and from there on it will be started automatically when you reboot.
I stumbled on the webpage and looked at the github documentation. There is enough for coding question is last post is dated more than 1 year ago, is the project still on?
One thing I just noticed. If I run an ampy command (ampy -p /dev/tty.SLAB_USBtoUART -b 115200 ls) before doing the screen session, I get the REPL prompt every time without needing to press Ctrl+C. Running an ampy command must break the m5stack out of the currently running main program loop, which is what Ctrl+C does anyway. Just wanted to provide that additional detail.
@m5-docs Thanks, mine's version is: "MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on M5Stack with ESP32", that is distributed for UI flow 1.2.3.
I burned UI flow 1.3.0-beta, and found machine.lightsleep() is available.