Giter Club home page Giter Club logo

esp32-btc's Introduction

ESP32-BTC

Simple Demo for an ESP32 module with a TFT LCD or an OLED display.

Displays current time and BTC price in USD.

Supports two different modules directly:

  • ESP32 with I2C connected SSD1306 driven OLED display (resolution 128x64) made by Lolin as WEMOS LOLIN32
  • ESP32 with SPI connected ST7789V driven TFT LCD display (resolution 240x135) made by TTGO as T-Display

It's very easy to modify the source code for any I2C or SPI connected display.

The demo application shows several useful techniques, such as:

  • using a single source code with very different displays and graphics libraries
  • obtaining current time using SNTP
  • obtaining current bitcoin price using a web API
  • avoiding JSON library when decoding simple JSON message
  • using the Tasker library to call a task periodically or on a button press

To install ESP32 core on Arduino follow the instructions on this page: https://github.com/espressif/arduino-esp32#installation-instructions

Then you'll need to install either SSD1306 or TFT_eSPI libraries and also NTPClient and Tasker libraries. They are available via the Arduino Library Manager.

Please note that the TTGO T-Display requires version 1.4.16 (or higher) of the TFT_eSPI library, otherwise the screen content is shifted by 52 pixels.

Enjoy!

Petr Stehlik https://github.com/joysfera

LOLIN32 photo

LOLIN photo

LOLIN32 pinout

LOLIN pinout

TTGO T-Display

TTGO T-display photo+pinout

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.