Updated Variant USART (markdown)

Candas1
2021-03-03 14:21:11 +01:00
parent 94f9457ddc
commit 636457403c

@@ -1,7 +1,7 @@
This variant can be used to control the board from another board(e.g. Arduino, ESP32, ESP8266,RASPBERRY PI) or a computer via a serial protocol.<br />
The example [Arduino sketch](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Arduino/hoverserial/hoverserial.ino) will send commands and process the feedback.<br />
Those commands are send as binary frames with following structure:<br />
- Start frame : 0XABCD as unsigned int16
- Start frame : 0xABCD as unsigned int16
- Steer : -1000 to 1000 as signed int16
- Speed : -1000 to 1000 as signed int16
- Checksum : XOR checksum as unsigned int16