def start():
""" start running the ui. GPIO must only be loaded when it is stared, as the library is not available on the
build computer.
"""
from RPi import GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD) # use pin numbers as written on the board
main_led.start()
button_led.start()
display.start()
button.start()
CallState.add_listener(on_call_state_change)
main_led.queue(Startup())
button_led.queue(StartupButton())
display.show(10, 'Telewall')
评论列表
文章目录