Change the examples in documentation

This commit is contained in:
snkYmkrct 2022-09-21 12:52:17 +02:00
parent bb40b5c98e
commit 9c5abb6d7a
2 changed files with 2 additions and 4 deletions

View File

@ -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")

View File

@ -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")