Skip to content

PWM on pin #13 fix #155

Closed
Closed
@ladyada

Description

@ladyada

heya - it seems pin #13 pwm analogwrite() doesnt work? a change to the variant.cpp fixes:

  // 13 (LED)
  { PORTA, 17, PIO_PWM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER), No_ADC_Channel, PWM2_CH1, TCC2_CH1, EXTERNAL_INT_1 }, // TCC2/WO[1]

(basically, tell it what channel to tweak) - all other PWMs are 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions