Skip to content

PWM phase semantics is error-prone (GIT8266O-76) #528

Closed
@sysprogs

Description

@sysprogs

The values of -180 and 180 suggest that the phase is specified in degrees, so +180 would mean "half a period later" and +90 would mean "quarter of a period later". However, currently +90 translates to "half period later" and +45 - to "quarter period later".

Also since the comment in pwm_set_phase() doesn't mention the exact semantics, it does likely confuse near 100% of users trying the API for the first time.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions