Skip to content

Commit

Permalink
Merge pull request #49 from candorgander/master
Browse files Browse the repository at this point in the history
Implemented changes to work with ESP S3 and S2
  • Loading branch information
madhephaestus authored Apr 19, 2024
2 parents da69f24 + 07cb9c0 commit d348ac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ESP32PWM.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#ifndef LIBRARIES_ESP32SERVO_SRC_ESP32PWM_H_
#define LIBRARIES_ESP32SERVO_SRC_ESP32PWM_H_
#include "esp32-hal-ledc.h"
#if defined(ARDUINO)
#include "Arduino.h"
#endif

#if defined(CONFIG_IDF_TARGET_ESP32C3)
#define NUM_PWM 6
Expand All @@ -21,7 +24,6 @@
#define USABLE_ESP32_PWM (NUM_PWM-PWM_BASE_INDEX)
#include <cstdint>

#include "Arduino.h"
class ESP32PWM {
private:

Expand Down
4 changes: 3 additions & 1 deletion src/ESP32Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <ESP32Servo.h>
#include "Arduino.h"
#if defined(ARDUINO)
#include "Arduino.h"
#endif

//
Servo::Servo()
Expand Down

0 comments on commit d348ac0

Please sign in to comment.