0

brand new to this stuff, this is my first ever touching of anything like this and struggling to know what the terms mean on blog posts and what to google, so thought would hopefully get a clean cut answer.

I've got a Pi Pico W and Inky Frame running MicroPython which is rendering some stuff, it works fine when I execute it over USB via Thonny.

However I've come to the point where I'm going to remove the USB and leave it on battery.

I'd like my script to execute every 1 hour to update what is rendered, however cannot really find much on this, I'm not sure if I'm reading too deeply into this and maybe it does it automatically? Effectively a super stripped back version of my main.py ...

import machine
import time

def render():
    # all my stuff in here etc
    gc.collect()
    graphics.update();

while True:
    render()
    time.sleep(3600)

Is this the correct way to update it every hour when running on battery?

owenmelbz
  • 6,180
  • 16
  • 63
  • 113

0 Answers0