Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[PWM] Error thrown when set pulsewidth before period #359

@cuiyanx

Description

@cuiyanx
var pinA = pwm.open({ channel: pins.IO3 });
pinA.setPeriod(1000);
pinA.setPulseWidth(300);

It work well.

pinA.setPulseWidth(300);
pinA.setPeriod(1000);

error message:

zjs_pwm_set: pulseWidth was greater than period

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions