mirror of
https://github.com/damellis/attiny
synced 2025-08-22 09:37:09 +00:00
This fixes issue #36 (for Arduino 1.5.x at least). It uses initVariant() to put Timer1 into PWM mode and a hacky #define alias (TCCR1A for GTCCR) so that analogWrite() will set the right bit in the right register to connect the timer PWM output to the pin. Also, the pre-scale factor and PWM frequency are probably wrong (or, at least, not the same as on other AVRs).
Description
No description provided
Languages
C
100%