@felmue Thanks a lot, everything is working!
Latest posts made by Hopichek
-
RE: M5stickc plus2 DeepSleep
The problem is that I created a fairly large project in Flow 1.13 using functions that are not in Flow 2. Therefore, the question is rather how to implement deep sleep specifically in Flow 1.13. And I don't understand why the standard function doesn't work(
The whole project is written in blocks in flow and in python I want to finish writing a deep sleep.
-
M5stickc plus2 DeepSleep
Hello!
I use UIFlow 1.13.4 and M5stickc plus2
def buttonA_wasDoublePress():
global peer_mac, data, Sleep, Speed, Rudder_Angle, Select, cnt_succes, flag_cb
M5pwr.brightness(0)
p37 = machine.Pin(37, mode = machine.Pin.IN, pull = machine.Pin.PULL_UP)
p37.irq(trigger = machine.Pin.WAKE_LOW, wake = machine.DEEPSLEEP)
machine.deepsleep(20000)
pass
btnA.wasDoublePress(buttonA_wasDoublePress)I'm trying to add a deep sleep mode. But the device simply turns off when you press button A twice.
Tell me how to realize deep sleep in UIFlow on M5stickc plus2.
Thanks a lot.