@pabou try using uiflow to generate the code, then peek copy from there.
J
Latest posts made by jhfoo2
-
RE: Micropython doc for paper s3posted in Lessons and Guides
-
RE: paper s3 micropython example for Power.lightSleep()posted in PRODUCTS
Also: I try to skip uiflow and code directly in micropython. Do you know why I can't get touched X,Y in this code:
while True: StatusLabel.setText('SLEEP') time.sleep(1) print ('sleep') Power.lightSleep(10 * 1000000, True) StatusLabel.setText('WAKE') time.sleep(1) print ('wake') time.sleep(1) M5.update() time.sleep(1) (TouchX, TouchY, _, _) = M5.Touch.getTouchPointRaw() print (f'{TouchX}, {TouchY}') -
RE: paper s3 micropython example for Power.lightSleep()posted in PRODUCTS
@felmue said in paper s3 micropython example for Power.lightSleep():
M5PaperS3_Light_Sleep_Test_UIFlow2.4.3
Thanks! I see that was able to sleep and loop, and I can add simple code to detect where it was touched that woke it up.
Can you help me understand why you put in the 1sec time.sleep()?
-
paper s3 micropython example for Power.lightSleep()posted in PRODUCTS
Tried using uiflow to do lightsleep but it just hangs and needs a power restart. Does anyone have a working sample?
-
RE: Paper S3 wake on IMU?posted in PRODUCTS
Hi. Thanks for posting the code. Can you confirm if this is a once-and-done write to the BMI? I code in micropython and wonder if I can run your code and then flash back to micropython and it'd still work.