I'm following this tutorial to generate square waves using the timers of the attiny85, but I'm afraid this could mess with something else in the chip.
This is the relevant snippet:
// Set up Timer/Counter0 for 20kHz interrupt to output samples. TCCR0A = 3<<WGM00; // Fast PWM TCCR0B = 1<<WGM02 | 2<<CS00; // 1/8 prescale TIMSK = 1<<OCIE0A; // Enable compare match, disable overflow OCR0A = 49; // Divide by 400
I understand that this might affect
delay(), but as I'm using watchdog timer to send the attiny to sleep, I think this in this case it should not affect this specific function.
Are there another negative consequences of modifying this timer?