Search found 2 matches

by grg
Fri Feb 18, 2022 3:22 pm
Forum: Raspberry Pi microcontroller boards
Topic: AttributeError: 'I2S' object has no attribute 'irq'
Replies: 1
Views: 1101

Re: AttributeError: 'I2S' object has no attribute 'irq'

DOH. I knew I'd find the problem as soon as I posted it.

Code: Select all

audioOut.irq = i2s_callback
should be

Code: Select all

audioOut.irq(i2s_callback)
:roll:

:oops:
by grg
Fri Feb 18, 2022 3:13 pm
Forum: Raspberry Pi microcontroller boards
Topic: AttributeError: 'I2S' object has no attribute 'irq'
Replies: 1
Views: 1101

AttributeError: 'I2S' object has no attribute 'irq'

Working from example code at https://github.com/miketeachman/micropython-i2s-examples/blob/master/examples/play_wav_from_sdcard_non_blocking.py Problem replicated with two uf2 firmware images: Official Raspberry Pi Pico UF2: MicroPython v1.18 on 2022-01-17; Raspberry Pi Pico with RP2040 My version b...