Toggle Navigation
Hatchery
Eggs
angel
service.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
service.py
raw
Content
from angel import ( make_qr, draw_qr, ) import badge qr = None def setup(): global qr name="angel-{}".format(badge.nvs_get_str("owner", "name", "")) qr = make_qr(name) # return qr def loop(): return 300000 def draw(y, sleep=2): global qr if qr is None: name="angel-{}".format(badge.nvs_get_str("owner", "name", "")) qr = make_qr(name) height=draw_qr(qr, y) return [300000, height]