Mozzi  version v2.0
sound synthesis library for Arduino
config_example_rp2040_i2s_pt8211_mono.h
1 /* Configuration example
2 
3 This example is targetted at the RP2040 (raspberry Pi pico) platform only!
4 
5 Configure the Raspberry Pico to output sound in mono on a I2S DAC on LSBJ format (like the PT8211). */
6 
7 
8 #include "MozziConfigValues.h" // for named option values
9 
10 #define MOZZI_AUDIO_MODE MOZZI_OUTPUT_I2S_DAC
11 #define MOZZI_I2S_FORMAT MOZZI_I2S_FORMAT_LSBJ // PT8211 is on LSBJ format
12 
13 // all of these are the defaults on RP2040 outputting on I2S, anyway, thus commented
14 #define MOZZI_AUDIO_BITS 16
15 #define MOZZI_I2S_PIN_BCK 20
16 #define MOZZI_I2S_PIN_WS (MOZZI_I2S_PIN_BCK+1) // CANNOT BE CHANGED, HAS TO BE NEXT TO pBCLK, i.e. default is 21
17 #define MOZZI_I2S_PIN_DATA 22