Пример #1
0
def danboard():
    index = 1

    pygame.mixer.init()

    while True:
        if pygame.mixer.music.get_busy() == True:
            time.sleep(rest_time)
            continue
        common.play_mp3('./assets/r2d2_' + str(index) + '.mp3')
        light.start_speak()
        index += 1
        if index == 11:
            index = 1
        time.sleep(rest_time)
Пример #2
0
def alarm_mp3_with_light(mp3):
    common.play_mp3(mp3)
    light.start_speak()
Пример #3
0
def r2d2():
    common.play_mp3('./assets/portal.wav')
    light.start_speak()
    return "R2D2"