''' Mission 5 Remix #1 - sound instructions Add sound for the instructions on which button to press. I commented out the display.show() but the project could include both audio and display ''' from codex import * from time import sleep #display.show("Press Button A") audio.mp3("sounds/a") sleep(1) pressed = buttons.is_pressed(BTN_A) if pressed: pixels.set(0, GREEN) display.show(pics.HAPPY) else: pixels.set(0, RED) display.show(pics.SAD) sleep(1) #display.show("Press Button L") audio.mp3("sounds/left") sleep(1) pressed = buttons.is_pressed(BTN_L) if pressed: pixels.set(1, GREEN) display.show(pics.HAPPY) else: pixels.set(1, RED) display.show(pics.SAD) sleep(1) #display.show("Press Button B") audio.mp3("sounds/b") sleep(1) pressed = buttons.is_pressed(BTN_B) if pressed: pixels.set(2, GREEN) display.show(pics.HAPPY) else: pixels.set(2, RED) display.show(pics.SAD) sleep(1) #display.show("Press Button R") audio.mp3("sounds/right") sleep(1) pressed = buttons.is_pressed(BTN_R) if pressed: pixels.set(3, GREEN) display.show(pics.HAPPY) else: pixels.set(3, RED) display.show(pics.SAD)