pimoroni-pico icon indicating copy to clipboard operation
pimoroni-pico copied to clipboard

Inky frame sleep

Open exussum12 opened this issue 2 years ago • 7 comments

The manual says

https://github.com/pimoroni/pimoroni-pico/blob/main/micropython/modules_py/inky_frame.md#rtc

I get AttributeError: 'module' object has no attribute 'sleep_for'

when running that code

The example code seems to work

import inky_helper as ih
ih.sleep(minutes)

Do I need to update my frame? or example code need updating to follow docs?

exussum12 avatar Jul 18 '23 21:07 exussum12

sleep_for was a reasonably recent addition I believe - are you using the most the recent Inky Frame MicroPython build from the releases page?

helgibbons avatar Jul 19 '23 11:07 helgibbons

I only received it the day before this, assumed it was on latest version. Its mounted on a wall now so next time I update code I will flash and verify

exussum12 avatar Jul 22 '23 20:07 exussum12

Same happened for me. Received Inky Frame 7.3 board today and after writing pimoroni-inky_frame-v1.20.3-micropython.uf2 issue was solved. Thank you very much!

iohe avatar Aug 03 '23 14:08 iohe

Good stuff - I'll check with production what version we're preloading on new units and get them to bump it to the newest version if necessary.

helgibbons avatar Aug 03 '23 14:08 helgibbons

Confirmed it was an old version too. Updating resolved

exussum12 avatar Aug 04 '23 19:08 exussum12

Did you get sleeping with timer working? I can't get it to work on my Inky Frame 5.7 or 7.3 on battery. It either never wakes up or wakes up instantly. Tested both latest MP release and the C++ examples.

daniel-j avatar Aug 21 '23 19:08 daniel-j

Yeah it works fine for mine. Assume your powering with the JST connection not the USB?

exussum12 avatar Aug 21 '23 20:08 exussum12

Issue appears to have been resolved. Closing, please reopen if required :)

thirdr avatar Jun 03 '24 09:06 thirdr