Closed phesterman closed 6 months ago
Adafruit CircuitPython 9.0.0-rc.1 on 2024-03-14; M5 Stack Cardputer with ESP32S3
# for I2S audio with external I2S DAC board import audiobusio audio = audiobusio.I2SOut(board.I2S_BIT_CLOCK, board.I2S_WORD_SELECT, board.I2S_DATA)
code.py output: Traceback (most recent call last): File "code.py", line 17, in AttributeError: 'module' object has no attribute 'I2S_DATA'
In board, the I2S pins are identified as: 'I2S_BIT_CLOCK', 'I2S_WORD_SELECT', and 'IS2_DATA'. You can see the typo in the naming of the data pin.
Substituting IS2_DATA for I2S_DATA stops the error, but doesn't fix the typo, of course.
This is fixed in the "absolute newest" version by #9020
CircuitPython version
Code/REPL
Behavior
code.py output: Traceback (most recent call last): File "code.py", line 17, in
AttributeError: 'module' object has no attribute 'I2S_DATA'
Description
In board, the I2S pins are identified as: 'I2S_BIT_CLOCK', 'I2S_WORD_SELECT', and 'IS2_DATA'. You can see the typo in the naming of the data pin.
Additional information
Substituting IS2_DATA for I2S_DATA stops the error, but doesn't fix the typo, of course.