-
Download and install Arduino IDE
-
Add support for TTGO T-Display
Enter the URL https://dl.espressif.com/dl/package_esp32_index.json
under Additional Boards Manager URLs
The board can now be selected.
- Install necessary libraries
- Button2
- ELMDuino
- TFT_eSPI
- Change TFT_eSPI library to handle TTGo T-Display
Edit file %userprofile%\Documents\Arduino\libraries\TFT_eSPI\User_Setup_Select.h
and change
Line 22 from
#include <User_Setup.h> // Default setup is root library folder
to
//#include <User_Setup.h> // Default setup is root library folder
and line 53 from
//#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
to
#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
-
Download the files DPF.ino and FreeFonts.h
-
Open the
DPF.ino
in Arduino IDE. -
Change the MAC address to your OBD II adapter MAC address on line 20 (my MAC is 86:DC:52:B5:F6:F1)
screen-20220726-161716.2.mp4
uint8_t _rgu8MACAddress[6] = { 0x86, 0xDC, 0x52, 0xB5, 0xF6, 0xF1 };
- Press
CTRL + R
to compile and check for errors.
-
Press
CTRL + U
to flash the TTGO T-Display. -
Go to your car and check, whether a connection can be established.