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