Code Monkey home page Code Monkey logo

lilygo-t-display-btc-clock's Introduction

Overview

"working example"

"Lilygo t-display case"

Setup a live Bitcoin price ticker and clock / date display on a LilyGo T-display.

Combines the date, clock, and wifi functions of https://espgo.be/index-en.html with the Bitcoin price tracker of https://how2electronics.com/bitcoin-price-tracker-using-esp32-oled-display/

Notes:

  • This may work with similar LilyGo models, but I have only tested on the LilyGo T-display v1.1
  • Bitcoin price is sourced from coindesk public API.
  • Originally tried getting this repo by oxinon to work, but I had trouble getting wifi to connect and I did not want to use the coinmarketcap API.

Prequisites

  • A LilyGogo T-display
  • Arduino IDE

Setup steps are for Mac. Windows and Linux will be very similar but may be easier as I had some issues getting the LilyGo T-display drivers working at first.

Setup Steps

  1. Connect the LilyGo T-display via USB and install the LilyGo T-display drivers (For Mac or Windows from here: https://github.com/Xinyuan-LilyGO/TTGO-T-Display?tab=readme-ov-file

  2. Install Arduino IDE: https://www.arduino.cc/en/software/

  3. Add Arduino settings for the ESP32 boards "Preferences" > "Additional Boards Manager".
    Paste in this url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

"Additional boards"

  1. Add the required Arduino libraries in the Arduino Library Manager by going "Sketch" > "Include Library" > "Manage Library".

Libraries to add:

  • ArduinoJson by Benoit Blanchon
  • Preferences by Volodymr Shymanskyy
  • TFT_eSPI by Bodmer
  • WiFiManager by Tzapu
  1. Update the TFT_eSPI user settings by opening the Arduino library folder, located on mac at [Username]/Documents/Arduino/Libraries/TFT_eSPI/User_Setup_Select.h
  • Comment out the line 27 #include <User_Setup.h>
  • Uncomment line 58 #include <User_Setups/Setup25_TTGO_T_Display.h> (or whichever specific device it is you have).
  1. Download and open the repo and open the file lilygo-t-display-btc-clock/lilygo-t-display-btc-clock.ino to your Arduino folder at [Username]/Documents/Arduino/
  • Change Line 25 to be your City name and Line 26 to your time zone
  1. Setup your board: "Tools" > "Board" > "ESP32" > "ESP32 Dev Module". The device should now show up as connected in the top left with a USB icon. If this does not work you might need to try changing the ports to one of the other options from the menu. For me it was '/dev/cu.wchusbserial56230381151`.

"board settings" Set "Tools" > "Upload speed" to 115200. All other settings should be OK as defaults. If things are not showing up or working as expected try restarting the Arduino IDE or the computer or try a different USB port or cable.

  1. Click the "Upload" button. "Upload"

  2. The code should verify then upload and the the LilyGo will restart and prompt you to set wifi password by logging in to the temporary access point "Lily" and selecting your wifi network from there.

  3. Done.

lilygo-t-display-btc-clock's People

Contributors

codyellingham avatar

Stargazers

HSUN avatar ATOMNFT avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.