seche06 / arduino-timerone

Automatically exported from code.google.com/p/arduino-timerone
0 stars 0 forks source link

[fix included] mega and leonardo not supported #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. make a sketch that uses pins 11 on mega.
2. Registers fail to setup (PORTB1 instead of PORTB5)
3. fails to get pwm on pin 11.

Included is a fix for Timer1.cpp that remaps the pins and ports according to 
the mcu.
It now works on mega and leonardo hardware.

Thank you,
Charles

Original issue reported on code.google.com by c...@fsck.fr on 21 Jul 2013 at 1:01

Attachments: