Skip to content

Generate RC servo signal on a selected pins with ESP32 device and Arduino framework.

License

Notifications You must be signed in to change notification settings

dkwach/ServoESP32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServoESP32 Build Status

Generate RC servo signal on a selected pins with ESP32 device and Arduino framework.

Base on servo library for stm32f4 (d2a4a47).

Interface

The interface is similar to Arduino/Servo: https://www.arduino.cc/en/Reference/Servo

But the function atach() is different:

bool attach(
    int pin,
    int channel = CHANNEL_NOT_ATTACHED,
    int minAngle = MIN_ANGLE,
    int maxAngle = MAX_ANGLE,
    int minPulseWidth = MIN_PULSE_WIDTH,
    int maxPulseWidth = MAX_PULSE_WIDTH
);

More information in source code documentation.

Example: 04-SimpleServoAngles

PlatformIO

This library is also available at the PlatformIO as ServoESP32.

Arduino IDE

This library is available in Arduino IDE Library Manager as ServoESP32.

Known issues

Problem with build in Arduino IDE 1.8.10

There was an issue with building this library in Arduino IDE 1.8.10. But this issue should be fixed in Arduino IDE 1.8.11.

About

Generate RC servo signal on a selected pins with ESP32 device and Arduino framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%