I am trying to get the PCM examples from this Arduino page to work. Unfortunately the Leonardo is based on the ATMega32u4 and not - like the UNO - on the ATmega328.
Googling around the internet led me to believe that converting the used (but not available) TIMER2 to the TIMER4. But I still am stuck trying to convert ASSR, EXCLK, AS2 to variables that the ATMega32u4 understands.
Did someone figure this out?
I have found one example on Github, which compiles, but I do not hear any sounds... I already checked that I can play normal melodies with the tone() function - so at least the speaker is working.
Any help would be greatly appreciated!