Initial commit: add stepper controller firmware
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ESP8266WebServer.h>
|
||||
#include <ArduinoOTA.h>
|
||||
#include "motor/StepperController.h"
|
||||
|
||||
class OtaManager {
|
||||
public:
|
||||
void begin(const String& hostname, StepperController& motor);
|
||||
void update();
|
||||
void handleUpload(ESP8266WebServer& server, HTTPUpload& upload, StepperController& motor);
|
||||
bool isUpdating() const;
|
||||
|
||||
private:
|
||||
bool updating_ = false;
|
||||
};
|
||||
Reference in New Issue
Block a user