Toggle Navigation
Hatchery
Eggs
Graphics tests
__INIT__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__INIT__.py
raw
Content
def drawPlug(): global framebuf plug = [0,0,1,0,0,1,0, 0,0,1,0,0,1,0, 0,0,1,0,0,1,0, 0,1,1,1,1,1,1, 0,1,1,1,1,1,1, 0,1,1,1,1,1,1, 0,0,1,1,1,1,0, 0,0,0,1,1,0,0] drawPlug() def drawNumber(draw_num,255,150): global number if draw_num < 10 and draw_num >= 0: cols = 0 rows = 0 for i in number[draw_num]: if i == 1: drawPixel(color,(point[0]+cols,point[1]+rows)) cols += 1 if cols > 2: cols = 0 rows += 1 drawNumber(100,(21,2),(255,0,0)) utime.sleep(1)