This commit is contained in:
interfisch 2021-03-10 00:59:54 +01:00
parent e83de79916
commit e2ac65b735
1 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,15 @@
#include <Arduino.h> #include <Arduino.h>
/*
Connections:
Tennsy Pin, Pin Name, Connected to
10, Tx2, Hoverboard RX(Green)
9, Rx2, Hoverboard TX(Blue)
8, Tx3, Hoverboard RX(Green)
7, Rx3, Hoverboard TX(Blue)
*/
// ########################## DEFINES ########################## // ########################## DEFINES ##########################
#define SERIAL_CONTROL_BAUD 115200 // [-] Baud rate for HoverSerial (used to communicate with the hoverboard) #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 SERIAL_BAUD 115200 // [-] Baud rate for built-in Serial (used for the Serial Monitor)
@ -13,6 +23,8 @@
const uint16_t calib_throttle_min = 350; const uint16_t calib_throttle_min = 350;
const uint16_t calib_throttle_max = 810; const uint16_t calib_throttle_max = 810;
#define PIN_LED_START TODOOOOO //Enginge start led
unsigned long last_send = 0; unsigned long last_send = 0;
unsigned long last_receive = 0; unsigned long last_receive = 0;