Skip to content

SOFT_PWM is off by one, low duties are higher than intended #6003

@StefanBruens

Description

@StefanBruens

A PWM with 128 steps has a maximum count of 127 (0/127 ... 127/127). Currently, a setting of 1/127 runs for 2 counts, i.e. the PWM is switched at pwm_count == 0, but only switched off at pwm_count == 2.

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