Class D amps are simple – just take an input, and use that to modulate a square wave with PWM ... found a home for it in the power section of an amplifier. The ATtiny is clocked at 16 MHz ...