basic framework with hoverboard-esc-serial-comm lib

This commit is contained in:
interfisch 2022-03-28 21:03:36 +02:00
parent 2bd4e16322
commit 527e7accd6
2 changed files with 6 additions and 5 deletions

@ -1 +1 @@
Subproject commit ba0b19560f3fbd276a220b709b23937646eff385 Subproject commit 97630cfcff7fa813ace7d1cfb7d4268a07e98750

View File

@ -1,14 +1,15 @@
#include <Arduino.h> #include <Arduino.h>
#include <hoverboard-esc-serial-comm.h> #include "hoverboard-esc-serial-comm.h"
ESCSerialComm esc; ESCSerialComm esc(Serial2);
void setup() { void setup() {
esc = ESCSerialComm(); //create object
} }
void loop() { void loop() {
// put your main code here, to run repeatedly: unsigned long loopmillis=millis();
esc.update(loopmillis);
} }