ESP32Servo
Functions | Variables
PWMExample.ino File Reference
#include <ESP32Servo.h>
Include dependency graph for PWMExample.ino:

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 

Variables

int APin = 13
 
ESP32PWM pwm
 
int freq = 1000
 

Function Documentation

◆ loop()

void loop ( )

Definition at line 15 of file PWMExample.ino.

References ESP32PWM::adjustFrequency(), freq, and ESP32PWM::writeScaled().

Here is the call graph for this function:

◆ setup()

void setup ( )

Definition at line 5 of file PWMExample.ino.

References ESP32PWM::allocateTimer(), APin, ESP32PWM::attachPin(), and freq.

Here is the call graph for this function:

Variable Documentation

◆ APin

int APin = 13

Definition at line 2 of file PWMExample.ino.

Referenced by setup().

◆ freq

int freq = 1000

◆ pwm

ESP32PWM pwm

Definition at line 3 of file PWMExample.ino.