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

Go to the source code of this file.

Macros

#define PWMRANGE   255
 

Functions

void analogWrite (uint8_t APin, uint16_t AValue)
 

Macro Definition Documentation

◆ PWMRANGE

#define PWMRANGE   255

Definition at line 7 of file analogWrite.h.

Function Documentation

◆ analogWrite()

void analogWrite ( uint8_t  APin,
uint16_t  AValue 
)

Definition at line 11 of file analogWrite.cpp.

References ESP32PWM::attached(), ESP32PWM::attachPin(), ESP32PWM::detachPin(), pwmFactory(), and ESP32PWM::write().

Referenced by loop().

Here is the call graph for this function: