Esempio n. 1
0
GPIO.setmode(GPIO.BCM)
GPIO.setup(21, GPIO.OUT, initial=GPIO.HIGH)

l = Render(4)
m = Render(3)
r = Render(1)


def grow(num, ite):
    return num + ite


con = True
f1 = 0
f2 = 0
try:
    while con:
        l.update_text(str(f1), "mph")
        m.update_text(str(f2), "rpm")
        r.update_text("Walk It Like I Talk It", "Migos")
        f1 = grow(f1, 10)
        f2 = grow(f2, 100)
        con = f2 < 8000
        time.sleep(.1)
    l.clear()
    m.clear()
    r.clear()
except KeyboardInterrupt:
    l.clear()
    m.clear()
    r.clear()
Esempio n. 2
0
from render import Render

gl = Render()
gl.CreateWindow(9000, 9000)
gl.clearColor(0, 0, 0)
gl.clear()
gl.color(1, 1, 1)
gl.load('./tarea1/Bowl.obj', (40, 40), (40, 40))
gl.finish('Bigmax.bmp')