Use library for smooth pen servo move.
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
#define EGGDUINO_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#define SUPPRESS_HPP_WARNING
|
||||
#include <ServoEasing.h>
|
||||
#ifdef ESP32
|
||||
#include <ESP32Servo.h>
|
||||
#include <WiFi.h>
|
||||
#include <WebServer.h>
|
||||
#include <SPIFFS.h>
|
||||
#else
|
||||
#include <Servo.h>
|
||||
#endif
|
||||
|
||||
#include <FastAccelStepper.h>
|
||||
@@ -72,7 +71,7 @@ extern FastAccelStepperEngine g_stepEngine;
|
||||
extern FastAccelStepper *g_pStepperRotate;
|
||||
extern FastAccelStepper *g_pStepperPen;
|
||||
|
||||
extern Servo penServo;
|
||||
extern ServoEasing penServo;
|
||||
extern SerialCommand SCmd;
|
||||
#ifdef ESP32
|
||||
extern SerialCommand g_BLECmd;
|
||||
@@ -134,6 +133,7 @@ void prepareMove(uint16_t duration, int penStepsEBB, int rotStepsEBB);
|
||||
void storePenUpPosInEE();
|
||||
void storePenDownPosInEE();
|
||||
void updateStepCorrectionFactors();
|
||||
void movePenServoTo(int targetPos);
|
||||
|
||||
bool initConfigStore();
|
||||
bool loadConfigFromFile();
|
||||
|
||||
Reference in New Issue
Block a user