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 built from a clean clone of the micropython git: MicroPython v1.18-141-gff9c70850 on 2022-02-18; Raspberry Pi Pico with RP2040
Code: Select all
audioOut = I2S(
I2D_ID,
sck=Pin(bclk),
ws=Pin(wsel),
sd=Pin(din),
mode=I2S.TX,
bits=SAMPLE_SIZE_BITS,
format=FORMAT,
rate=SAMPLE_RATE_HZ,
ibuf=I2S_BUFFER_BYTES
)
audioOut.irq = i2s_callback
Code: Select all
AttributeError: 'I2S' object has no attribute 'irq'
I can see the
Code: Select all
machine_i2s_irq
Code: Select all
{ MP_ROM_QSTR(MP_QSTR_irq), MP_ROM_PTR(&machine_i2s_irq_obj) },
I also see
Code: Select all
[ 68%] Building C object CMakeFiles/firmware.dir/machine_i2s.c.obj
Google gave me nothing.
I am 110% sure I've done something stupid, it's just...I am totally at a loss for what to try next. Pls help.