NOTE: The esp32 library has breaking changes in the latest libraries (v3.0+) for the colored display, not fixed in this repo yet, details here
- Hardware:
- IDE and libraries:
- Arduino IDE
- Add these URLs under - Preferences > Additional boards manager URLs)
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json https://dl.espressif.com/dl/package_esp32_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
pip install pyserial
- Install these libraries from Arduino IDE (Tools > Manage Libraries): Arduinojson, GxEPD2, Adafruit GFX, Adafruit BusIO
- For TDisplay-S3: copy this git repo's lib folder content to your Arduino libraries folder
- Make sure esp32 by esspressif is installed under Tools > Board > Board Manager
- Connect, configure and upload:
- Connect your device with usb and make sure to run
sudo chmod 666 /dev/ttyACM0
(replace ACM0 with your correct device location) - If esp32 board library is installed correctly, you will be able to select "LilyGo T-Display" as the board manager.
- Open the correct main
.ino
file in Arduino IDE and point to correct device location - Rename
config_sample.h
toconfig.h
and uncomment+edit to add your WiFi SSID/password and refresh frequency - Compile and upload, phew!
- Connect your device with usb and make sure to run
- This code uses blockchair public API over https
- You can replace the API to your choice(or host your own using py/flask like this) by editing the
refreshData()
andjsonToStr()
functions (and the root cert) - If needed the root CA cert can be changed here
- Stats in the screenshot(T5s 2.7in): block number, price in USD, sats per USD, tx fee, hashrate, difficulty, #nodes, full node data size, datetime in UTC
-
For TFT/LCD and command line display, check this repo.