# cpb_rooster.py

# Demonstrate playing audio files using the built-in speaker.
# Button A plays the .mp3 file, button B plays the .wav file.

# This demo is specific to the Adafruit Circuit Playground Bluefruit board.
# This program uses only onboard hardware: pushbuttons, speaker.

# Note: this script assumes that Rooster.wav and Rooster.mp3 have been copied to
# the top level of the CIRCUITPY filesystem.

# Import the board-specific input/output library.
from adafruit_circuitplayground import cp

while True:
    if cp.button_a:
        cp.play_mp3("Rooster.mp3")
        
    if cp.button_b:
        cp.play_file("Rooster.wav")
