def main(): oled = get_oled() screen = Screen(oled) wait_for_networking() conf = get_conf() APPID = conf['APPID'] for city in CITIES: show_weather(screen, APPID, city)
def main(): oled = get_oled() screen = Screen(oled) wait_for_networking() conf = get_conf() APPID = conf['APPID'] for i in range(3): show_random_weather(screen, APPID)
def main(): oled = get_oled() screen = Screen(oled) screen.write('hello') for i in range(10): print(i) screen.write(MESSAGE % i)
def main(): oled = get_oled() screen = Screen(oled) wait_for_networking() conf = get_conf() APPID = conf['APPID'] button = Pin(BUTTON_A_PIN, Pin.IN, Pin.PULL_UP) show_random_weather(screen, APPID) while True: if not button.value(): show_random_weather(screen, APPID)