ESP32Servo
Data Structures | Macros | Functions
ESP32PWM.h File Reference
#include "esp32-hal-ledc.h"
#include <cstdint>
#include "Arduino.h"
Include dependency graph for ESP32PWM.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ESP32PWM
 

Macros

#define NUM_PWM   16
 
#define PWM_BASE_INDEX   0
 
#define USABLE_ESP32_PWM   (NUM_PWM-PWM_BASE_INDEX)
 

Functions

ESP32PWMpwmFactory (int pin)
 

Macro Definition Documentation

◆ NUM_PWM

#define NUM_PWM   16

◆ PWM_BASE_INDEX

#define PWM_BASE_INDEX   0

Definition at line 12 of file ESP32PWM.h.

Referenced by ESP32PWM::ESP32PWM().

◆ USABLE_ESP32_PWM

#define USABLE_ESP32_PWM   (NUM_PWM-PWM_BASE_INDEX)

Definition at line 13 of file ESP32PWM.h.

Function Documentation

◆ pwmFactory()

ESP32PWM* pwmFactory ( int  pin)

Definition at line 305 of file ESP32PWM.cpp.

References ESP32PWM::getPin(), and NUM_PWM.

Referenced by analogWrite(), ESP32PWM::channelsRemaining(), loop(), noTone(), and tone().

Here is the call graph for this function: