def switchOff(pin): led = gpio.GPIOhelper() return led.switchOff(pin)
def animation1(): led = gpio.GPIOhelper() return led.animation1()
def quizResult(result): led = gpio.GPIOhelper() led.reset() return render_template('quiz_result.html', score=int(result))
def blink(pin): led = gpio.GPIOhelper() return led.blink(pin)
def quizRun(): led = gpio.GPIOhelper() led.reset() return render_template('quiz_run.html')
def quiz(): led = gpio.GPIOhelper() led.reset() return render_template('quiz_start.html')
def gameRun(): led = gpio.GPIOhelper() led.reset() return render_template('game_run.html')
def quizResult(): led = gpio.GPIOhelper() led.reset() return render_template('quiz_result.html', result=result)
def gameResult(): led = gpio.GPIOhelper() led.reset() return render_template('game_result.html', result=result)