fast-arduino-lib icon indicating copy to clipboard operation
fast-arduino-lib copied to clipboard

Support PWM pins of ATtiny85 Timer1

Open jfpoilpret opened this issue 7 years ago • 4 comments

Currently, FastArduino ATtiny85 support enables only 2 PWM pins, both based on Timer0.

Event though currently FastArduino does not allow support for PWM pins linked to more than 1 timer, that still leaves room for pin PB4 (OC1B).

jfpoilpret avatar Jan 27 '18 20:01 jfpoilpret

The reason why PB4 is not initially supported by FastArduino ATtiny85, is because in ATtiny85, Timer1 is very different to all other AVR timers, and support would have required FastArduino refactoring of "board traits" in addition to Timer implementation.

I'd rather implement this refactoring for a later FastArduino version.

jfpoilpret avatar Jan 27 '18 20:01 jfpoilpret

Resolving this issue would better be combined with #18

jfpoilpret avatar Jan 27 '18 20:01 jfpoilpret

Note the following article may be useful for this issue: https://www.re-innovation.co.uk/docs/fast-pwm-on-attiny85/

jfpoilpret avatar Jan 27 '18 22:01 jfpoilpret

Remove this issue from milestone 1.3 To be rescheduled later. This does not seem urgent (not so many projects use ATtinyX5 MCU).

jfpoilpret avatar Aug 25 '19 17:08 jfpoilpret