Skip to content

NRF52 PwmOut inverted #7707

@ChiSaw

Description

@ChiSaw

Description

Switched from mbed-os-5.7 to mbed-os-5.9, suddenly PwmOut behaved inverted, meaning

PwmOut led(SOME_PIN);
led.write(0); // LED on

accordingly opposite cases for .write(1000);

Note: LED circuit is active-high.

Target: NRF52832
ARM_GCC 6-2017-q2-update 6.3.1 20170620 (release)
mbed-os: 5.9, mbed-cli
Steps to reproduce:
empty mbed-os project with main() containing

PwmOut led(p17);
led.write(0);
Thread::wait(3000); // to notice a change
led.write(1000);

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions