This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dual_i2s_player.py -- demonstrate using two I2S stereo DACs at once on RP2040 / Raspberry Pi Pico | |
# 19 May 2023 - @todbot / Tod Kurt | |
# video of this code: https://www.youtube.com/watch?v=CgqECxhqJEo | |
import time, board, audiocore, audiobusio | |
# qtpy rp2040 pins | |
# in this case, board.* names just match silkscreen, don't indicate functionality | |
lck1_pin, bck1_pin, dat1_pin = board.MISO, board.MOSI, board.SCK | |
lck2_pin, bck2_pin, dat2_pin = board.SCL, board.SDA, board.TX |