Beispiel #1
0
def switchOff(pin):
    led = gpio.GPIOhelper()
    return led.switchOff(pin)
Beispiel #2
0
def animation1():
    led = gpio.GPIOhelper()
    return led.animation1()
Beispiel #3
0
def quizResult(result):
    led = gpio.GPIOhelper()
    led.reset()
    return render_template('quiz_result.html', score=int(result))
Beispiel #4
0
def blink(pin):
    led = gpio.GPIOhelper()
    return led.blink(pin)
Beispiel #5
0
def quizRun():
    led = gpio.GPIOhelper()
    led.reset()
    return render_template('quiz_run.html')
Beispiel #6
0
def quiz():
    led = gpio.GPIOhelper()
    led.reset()
    return render_template('quiz_start.html')
Beispiel #7
0
def gameRun():
    led = gpio.GPIOhelper()
    led.reset()
    return render_template('game_run.html')
Beispiel #8
0
def quizResult():
    led = gpio.GPIOhelper()
    led.reset()
    return render_template('quiz_result.html', result=result)
Beispiel #9
0
def gameResult():
    led = gpio.GPIOhelper()
    led.reset()
    return render_template('game_result.html', result=result)