Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LilyPad USB Plus - incorrect PWM definition #109

Open
oqibidipo opened this issue May 10, 2023 · 0 comments
Open

LilyPad USB Plus - incorrect PWM definition #109

oqibidipo opened this issue May 10, 2023 · 0 comments

Comments

@oqibidipo
Copy link

Somebody forgot to move this timer definition from pin 3 to pin 10.

https://github.com/sparkfun/Arduino_Boards/blob/main/sparkfun/avr/variants/lilypadusbplus/pins_arduino.h#L268

const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
    NOT_ON_TIMER,
    NOT_ON_TIMER,
    NOT_ON_TIMER,
    TIMER0B,//3      <--  should be on pin 10
    NOT_ON_TIMER,
    NOT_ON_TIMER,
    TIMER0A,//6
    TIMER4D,//7
    TIMER1A,//8
    NOT_ON_TIMER,
    NOT_ON_TIMER,    <--  here
    NOT_ON_TIMER,
    TIMER1B,//12
    TIMER3A,//13
    TIMER4A,//14

Reference:
https://forum.arduino.cc/t/lilypad-usb-plus-and-pwm-on-pin-10/1125389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant