This repository contains code for TTGO T-Display board to let it use as dashboard for any VESC based ESC. Compatible with FW5.3
Display battery level, power and speed based on VESC data. Transparent BLE-UART proxy for VESC tool.
- Modify
src/config.h
according to your specifications. - Connect
3V
or5V
pin to VESC.- Optional: I recommend you to use 10µF capacitor between
V+
andG
pin to avoid unstable behavior.
- Optional: I recommend you to use 10µF capacitor between
- Connect
G
pin to VESCGround
. - Connect
RX
pin to VESCTX
andTX
pin to VESCRX
. - Now you can use T-Display as dashboard and bluetooth relay.
You can also install buzzer, but case in this repo doesn't have a space for it.
Use buttons
I'm using the first button to control the light, so pin name is LIGHT_PIN
. The button can be used in two modes: as switch and pass-through.
In Switch mode button will toggle the flag, while flag is TRUE
, LIGHT_PIN
will be HIGH
.
In pass-through mode button will pass-through the state. Normal state is HIGH
.