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