micropython-i2s-examples
micropython-i2s-examples copied to clipboard
OSError [Error 22] EINVAL line 133 wavplayer.py
I'm using easy_wav_player as driver. Pico 2 with micropython V1.24.1.uf2. I download this repo Jan 12, 2025. The os.listdir(self.root) doesn't like the trailing '/' in self.root resulting in the title message. I commented out the trailing '/' in line 41 and the error went away. Updated line 140 insert "/" as shown: self.wav = open(self.root + "/" + wav_file, "rb") and I could now here the .WAV files, yea!
Thanks for developing these examples. Morris