Skip to content

PWM on D13 does not work with arduino_mzero variant #266

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

Closed
tbowmo opened this issue Oct 12, 2017 · 1 comment · Fixed by #270
Closed

PWM on D13 does not work with arduino_mzero variant #266

tbowmo opened this issue Oct 12, 2017 · 1 comment · Fixed by #270

Comments

@tbowmo
Copy link

tbowmo commented Oct 12, 2017

Pin configuration is missing PIN_ATTR_TIMER, in order to get PWM working on the channel

{ 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]

Above is copied from arduino_zero variant.

@tbowmo
Copy link
Author

tbowmo commented Oct 12, 2017

Probably issues with D6/D7 as well, as they are configured to use PIN_ATTR_TIMER, and not PIN_ATTR_TIMER_ALT (like arduino_zero variant)

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

Successfully merging a pull request may close this issue.

1 participant