Getting trouble to use the pwm implementation of esp32_hal

Hello, i want to control a simple dc motor using a low side nmos, here is the Diagram

I dont understand how to use the pwm implementation of the embeded-hal lib for an ESP32-C3, and i haven't find any exemple on the internet how to use it. If someone has a working exemple it would help me a lot, i'm a beginner at embeded, and rust in general, i'm using the project to learn about rust and embeded :slight_smile:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.