8// Audio output pin. If you want to change this, make sure to also set AUDIO_PWM_TIMER to whichever timer is responsible for your PWM pin, and set the other timers to non-conflicting values
9#defineAUDIO_CHANNEL_1_PINPB8
10#defineAUDIO_PWM_TIMER 4
11// The timer used for running the audio update loop. NOTE: Timer 3 appears to clash with SPI DMA transfers under some circumstances
12#defineAUDIO_UPDATE_TIMER 2
13
14#if(AUDIO_MODE==HIFI)
15// Second out pin for HIFI mode. This must be on the same timer as AUDIO_CHANNEL_1_PIN!
16// Note that by default we are not using adjacent pins. This is to leave the "Serial1" pins available (often used for upload/communication with Arduino IDE). If you don't need that, PA9 is a good choice.
17#defineAUDIO_CHANNEL_1_PIN_HIGHPB9
18// Total audio bits.
19#defineAUDIO_BITS 14
20#defineAUDIO_BITS_PER_CHANNEL 7
21#else
22// The more audio bits you use, the slower the carrier frequency of the PWM signal. 10 bits yields ~ 70kHz on a 72Mhz CPU (which appears to be a reasonable compromise)