22 #ifdef ARDUINO_ARCH_ESP32    39   bool attach(uint8_t pin, 
double freq, uint8_t resolution);
    42   void writeTone(uint8_t pin, uint32_t freq);
 High-level interface for the ESP32/ESP32-Sx/ESP32-Cx LED Control (LEDC) peripheral. Instead of specifying a timer or channel, this class automatically allocates a channel and associates it with a pin. Underlying esp32-hal-ledc performs timer management and handles the low-level LEDC peripheral API calls. 
Definition: ws_ledc.h:37
 
ws_pwm()
Constructor for non-ESP32 platforms. 
Definition: ws_pwm.cpp:23
 
void noTone(uint8_t pin)
Stops a square wave generated by writeTone(). 
Definition: ws_pwm.cpp:121
 
~ws_pwm()
Destructor. 
Definition: ws_pwm.cpp:38
 
void writeTone(uint8_t pin, uint32_t freq)
Writes a frequency to a pin with a fixed duty cycle. 
Definition: ws_pwm.cpp:107
 
Class that provides storage and functions for the Adafruit IO Wippersnapper interface. 
Definition: Wippersnapper.h:285
 
bool attach(uint8_t pin, double freq, uint8_t resolution)
Attaches a PWM pin. 
Definition: ws_pwm.cpp:50
 
Interface for WipperSnapper PWM. 
Definition: ws_pwm.h:34
 
Wippersnapper WS
Definition: Wippersnapper.cpp:36
 
void writeDutyCycle(uint8_t pin, int dutyCycle)
Writes a duty cycle to a pin with a fixed freq of 5kHz. 
Definition: ws_pwm.cpp:88
 
void detach(uint8_t pin)
Detaches a PWM pin. 
Definition: ws_pwm.cpp:71