/ PyLeap_Bluefruit_MP3 / code.py
code.py
1 # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 """ 6 Circuit Playground Bluefruit MP3 Playback 7 8 Press each button on the Circuit Playground Bluefruit to play a different MP3. 9 """ 10 from adafruit_circuitplayground import cp 11 12 while True: 13 if cp.button_a: 14 cp.play_mp3("happy.mp3") 15 if cp.button_b: 16 cp.play_mp3("beats.mp3")