inital library setup

This commit is contained in:
interfisch 2022-03-28 20:04:44 +02:00
commit ba0b19560f
3 changed files with 33 additions and 0 deletions

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# Library to control hoverboard-firmware-hack-foc-serial-esc
When using https://gitea.ctdo.de/interfisch/hoverboard-firmware-hack-foc-serial-esc this library is used to send commands to the hoverboard PCB.

View File

@ -0,0 +1,10 @@
#include "hoverboard-esc-serial-comm.h"
ESCSerialComm::ESCSerialComm() { //constructor
}
void ESCSerialComm::update(long millis, boolean state) //example function
{
//Do stuff
}

View File

@ -0,0 +1,19 @@
#ifndef ESCSERIALCOMM_H
#define ESCSERIALCOMM_H
#include <Arduino.h>
#define SERIAL_CONTROL_BAUD 115200 // [-] Baud rate for HoverSerial (used to communicate with the hoverboard)
#define SERIAL_BAUD 115200 // [-] Baud rate for built-in Serial (used for the Serial Monitor)
#define START_FRAME 0xABCD // [-] Start frme definition for reliable serial communication
class ESCSerialComm
{
public:
ESCSerialComm(); //constructor
void update(long millis, boolean state); //declare example function
private:
long _millis_lastinput; //declare private variable
};
#endif