Update PWM.md

This commit is contained in:
HomeSpan 2024-02-08 20:54:51 -06:00 committed by GitHub
parent 43a9ef86a6
commit e2d954684f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
# Pulse Width Modulation (PWM)
The ESP32 has up to 16 PWM channels that can be used to drive a variety of devices. HomeSpan includes an integrated PWM library with dedicated classes designed for controlling **Dimmable LEDs** as well as **Servo Motors**. Both classes are provided in a standalone header file that is accessed by placing the following near the top of your sketch:
`#include "extras/PwmPin.h"`
The ESP32 has up to 16 PWM channels that can be used to drive a variety of devices. HomeSpan includes an integrated PWM library with dedicated classes designed for controlling **Dimmable LEDs** as well as **Servo Motors**.
## *LedPin(uint8_t pin [,float level [,uint16_t frequency [,boolean invert]]])*