Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PCM5100A ? #23

Open
jinyistudio534 opened this issue May 13, 2023 · 5 comments
Open

Support PCM5100A ? #23

jinyistudio534 opened this issue May 13, 2023 · 5 comments

Comments

@jinyistudio534
Copy link

Can i use this library with PCM5100A ?

@miketeachman
Copy link
Owner

Yes. The library will work with a PCM5100A device.

@jinyistudio534
Copy link
Author

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

@miketeachman
Copy link
Owner

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 =======`

@jinyistudio534
Copy link
Author

jinyistudio534 commented May 22, 2023

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

@miketeachman
Copy link
Owner

miketeachman commented May 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants