miketeachman/micropython-i2s-examples

Support PCM5100A ?

jinyistudio534 opened this issue ยท 5 comments

Can i use this library with PCM5100A ?

Yes. The library will work with a PCM5100A device.

Do you think this library can control pico-audio? Do I need to change those codes?
https://shop.pimoroni.com/products/pico-audio-pack?variant=32369490853971

Yes. The pico-audio can be controlled with MicroPython, using pins 12 (SD), 14(SCK), and 15(WS). Here is a simple example to try. You will need to change the code to use pins 12, 14, and 15 as shown below :

elif os.uname().machine.count("Raspberry"):

    # ======= I2S CONFIGURATION =======
    SCK_PIN = 14
    WS_PIN = 15
    SD_PIN = 12
    I2S_ID = 0
    BUFFER_LENGTH_IN_BYTES = 2000
    # ======= I2S CONFIGURATION =======`

12=GP9,14=GP10,15=GP11 and test it OK ๐Ÿ‘
elif os.uname().machine.count("Raspberry"):
print("Raspberry")
# ======= I2S CONFIGURATION =======
SCK_PIN = 10
WS_PIN = 11
SD_PIN = 9
I2S_ID = 0
BUFFER_LENGTH_IN_BYTES = 2000

Great ! I hope you did not waste too much time to find my mistake.