Arduino_Boards icon indicating copy to clipboard operation
Arduino_Boards copied to clipboard

LilyPad USB Plus - incorrect PWM definition

Open oqibidipo opened this issue 1 year ago • 0 comments

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

oqibidipo avatar May 10 '23 23:05 oqibidipo