![MicroPython Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/609/36698609/b_36698609.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
Let's perform the following steps:
- Copy the hello.wav file to the device in the same folder as the main.py file. Then, run the following lines of code in the REPL:
>>> from adafruit_circuitplayground.express import cpx >>> cpx.play_file('hello.wav')
- You should hear the board say "Hello" as it plays back the audio file.