Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Change the PWM frequency #2

@americodias

Description

@americodias

Hi Khoi,

Describe the bug

I'm not sure if this is a bug or a "feature", but I wanted to dynamically change the PWM frequency and I'm not able to do so using the setPWM function.

Steps to Reproduce

Example code: https://pastebin.com/raw/bAJ09Jn9

Expected behavior

I was expecting to have 2s of 1000Hz and then 2s of 2000Hz repeatedly.

Actual behavior

Frequency stays constant at 1000Hz.

Thanks,
Américo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions