inital library setup
This commit is contained in:
commit
ba0b19560f
|
@ -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.
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#include "hoverboard-esc-serial-comm.h"
|
||||
|
||||
ESCSerialComm::ESCSerialComm() { //constructor
|
||||
|
||||
}
|
||||
|
||||
void ESCSerialComm::update(long millis, boolean state) //example function
|
||||
{
|
||||
//Do stuff
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue