micropython-i2s-examples icon indicating copy to clipboard operation
micropython-i2s-examples copied to clipboard

OSError [Error 22] EINVAL line 133 wavplayer.py

Open p26grinz opened this issue 10 months ago • 2 comments

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

p26grinz avatar Jan 31 '25 22:01 p26grinz