Skip to content

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

Open
elliottkwilson wants to merge 1 commit into
microsoft:masterfrom
Drawbotic:master
Open

Update nrf52 platform.h to support PWM on all pins#1362
elliottkwilson wants to merge 1 commit into
microsoft:masterfrom
Drawbotic:master

Conversation

@elliottkwilson
Copy link
Copy Markdown

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