Change the examples in documentation
This commit is contained in:
parent
bb40b5c98e
commit
9c5abb6d7a
@ -60,8 +60,7 @@
|
||||
//| speaker_enable = digitalio.DigitalInOut(board.SPEAKER_ENABLE)
|
||||
//| speaker_enable.switch_to_output(value=True)
|
||||
//|
|
||||
//| wav = audiocore.WaveFile("cplay-5.1-16bit-16khz.wav") # preferred use
|
||||
//| # wav = audiocore.WaveFile(open("cplay-5.1-16bit-16khz.wav", "rb"))
|
||||
//| wav = audiocore.WaveFile("cplay-5.1-16bit-16khz.wav")
|
||||
//| a = audioio.AudioOut(board.A0)
|
||||
//|
|
||||
//| print("playing")
|
||||
|
@ -77,8 +77,7 @@
|
||||
//| speaker_enable = digitalio.DigitalInOut(board.SPEAKER_ENABLE)
|
||||
//| speaker_enable.switch_to_output(value=True)
|
||||
//|
|
||||
//| mp3 = audiomp3.MP3Decoder("cplay-16bit-16khz-64kbps.mp3") # preferred use
|
||||
//| # mp3 = audiomp3.MP3Decoder(open("cplay-16bit-16khz-64kbps.mp3", "rb"))
|
||||
//| mp3 = audiomp3.MP3Decoder("cplay-16bit-16khz-64kbps.mp3")
|
||||
//| a = audioio.AudioOut(board.A0)
|
||||
//|
|
||||
//| print("playing")
|
||||
|
Loading…
Reference in New Issue
Block a user