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

Update nrf52 platform.h to support PWM on all pins #1362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elliottkwilson
Copy link

Hello,

While developing a MakeCode target for a new custom nrf52840 based board I noticed that the pins on the second port (i.e. P1_0 to P1_31) weren't outputting PWM when analogWrite was called.

To solve this issue I changed DEV_PWM_PINS (in lib/core---nrf52/platform.h) to0xffffffffffffffffUL to support all pins on nrf52840 devices.

I haven't got any other nrf52 device to test on so I'm not sure if it will have an effect on other chips but it seems to only be used in the IS_ANALOG_PIN macro so I don't foresee an issue

Changed DEV_PWM_PINS to support all pins on nrf52840 devices
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 this pull request may close these issues.

1 participant