8000 PWM, Modes, and channels issue · Issue #8108 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

PWM, Modes, and channels issue #8108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kthod861 opened this issue Dec 23, 2021 · 3 comments
Closed

PWM, Modes, and channels issue #8108

kthod861 opened this issue Dec 23, 2021 · 3 comments

Comments

@kthod861
Copy link

Hello,

While trying to get the same behavior as "ledc"+"ledcWriteTone" using micropython, i ended up stuck with no solution to get the 8 PWM output with different frequencies .

Goal: get 8 frequencies outputs (fixed duty) that can be modified using python as the ESP32 is able to provide this ( tested using ledc on a bare new ESP32 board).
But i probably have missed something here.

For example, using "esp32-20210902-v1.17.bin", and by default testing the example provided here is a fail:

i say fail as the output of it i absolutly not :

  • PWM(Pin(15), freq=100, duty=64, resolution=10, mode=0, channel=0, timer=0)

but rather:

  • PWM(Pin(15), freq=100, duty=64 )

Did also a ton of test by myself without understanding the logic behind mode and channel selection when creating a PWM object.
It sounds like it dynamically choose timers depending on init frequency but i'm really not sure about that.

Any help is welcome

@robert-hh
Copy link
Contributor

PWM has been changed to support different frequencies. Try the latest daily build.

@kthod861
Copy link
Author

Awesome ! , using latest nightly solved it.
Thanks a lot

@IhorNehrutsa
Copy link
Contributor

@kthod861 please close the issue if all right

tannewt added a commit to tannewt/circuitpython that referenced this issue Dec 6, 2023
This changes storage.mount() to require that a mount point exist
on the parent file system.

A bug in background tasks is also fixed where the function
parameter is cleared on pending callbacks during "reset".

Disk usage is shown on the directory listing and changes based on
the mounted file system. Writable is also loaded per-directory.

Fixes micropython#8108. Fixes micropython#8690. Fixes micropython#8107.
tannewt added a commit to tannewt/circuitpython that referenced this issue Dec 6, 2023
This changes storage.mount() to require that a mount point exist
on the parent file system.

A bug in background tasks is also fixed where the function
parameter is cleared on pending callbacks during "reset".

Disk usage is shown on the directory listing and changes based on
the mounted file system. Writable is also loaded per-directory.

Fixes micropython#8108. Fixes micropython#8690. Fixes micropython#8107.
tannewt added a commit to tannewt/circuitpython that referenced this issue Jan 16, 2024
This changes storage.mount() to require that a mount point exist
on the parent file system.

A bug in background tasks is also fixed where the function
parameter is cleared on pending callbacks during "reset".

Disk usage is shown on the directory listing and changes based on
the mounted file system. Writable is also loaded per-directory.

Fixes micropython#8108. Fixes micropython#8690. Fixes micropython#8107.
tannewt added a commit to tannewt/circuitpython that referenced this issue Jan 18, 2024
This changes storage.mount() to require that a mount point exist
on the parent file system.

A bug in background tasks is also fixed where the function
parameter is cleared on pending callbacks during "reset".

Disk usage is shown on the directory listing and changes based on
the mounted file system. Writable is also loaded per-directory.

Fixes micropython#8108. Fixes micropython#8690. Fixes micropython#8107.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0