Use of PWM
For details on PWM, please refer to PWM-API Document.
1. Instructions#
- Import PWM and Timer modules from machine
- Create Timer and PWM
- Change the duty cycle, the set pin will output waveforms with different duty cycles
2. Example#
Control the brightness of LED_G
board_info
is related to the board, and different board configurations are different. Manual configuration is required before use.
Related Issues not found
Please login GitHub to create issue