2022-03-28 17:52:20 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
2022-03-28 19:03:36 +00:00
|
|
|
#include "hoverboard-esc-serial-comm.h"
|
2022-03-28 18:11:31 +00:00
|
|
|
|
2022-03-28 19:03:36 +00:00
|
|
|
ESCSerialComm esc(Serial2);
|
2022-03-28 18:11:31 +00:00
|
|
|
|
2022-03-28 17:52:20 +00:00
|
|
|
void setup() {
|
2022-03-28 19:03:36 +00:00
|
|
|
|
2022-03-28 17:52:20 +00:00
|
|
|
}
|
|
|
|
|
2022-03-28 18:11:31 +00:00
|
|
|
|
2022-03-28 17:52:20 +00:00
|
|
|
void loop() {
|
2022-03-28 19:03:36 +00:00
|
|
|
unsigned long loopmillis=millis();
|
|
|
|
esc.update(loopmillis);
|
2022-03-28 17:52:20 +00:00
|
|
|
}
|