Toggle Navigation
Hatchery
Eggs
ZIGGO_ZIGONE
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import rgb import time import urequests import uinterface wait_seconds = 10 ziggo = [ 0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff] zigone = [ 0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff, 0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0xff8300ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0x000000ff, 0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0xff8300ff ,0x000000ff ,0xff8300ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0x000000ff ,0x000000ff ,0xff0000ff ,0x000000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0xff0000ff ,0x000000ff] rgb.clear() while True: uinterface.connect_wifi() try: r = urequests.get('http://8.12.214.233/') except: rgb.image(zigone, pos=(0,0), size=(32,8)) print('FAIL') pass else: rgb.image(ziggo, pos=(4,0), size=(32,8)) print('OK') pass time.sleep(wait_seconds)