Giter Site home page Giter Site logo

ESP-32 radio about esp32-radio HOT 2 OPEN

edzelf avatar edzelf commented on July 16, 2024
ESP-32 radio

from esp32-radio.

Comments (2)

Edzelf avatar Edzelf commented on July 16, 2024

There are only a few lines of code for the display. It should be easy to replace them with the code for any display.

from esp32-radio.

derpicknicker1 avatar derpicknicker1 commented on July 16, 2024

To do this, do the following:

  1. Get the lib for ST7735 here or install it with Library Manager (search for Adafruit_ST7735)

  2. Include the header file for ST7735 instead of ILI9163. Change #include <TFT_ILI9163C.h> to #include <Adafruit_ST7735.h> in Line 105

  3. Change lines 115 to 118 to look like this:

#define	BLACK   ST7735_BLACK
#define	BLUE    ST7735_BLUE
#define	RED     ST7735_RED
#define	GREEN   ST7735_GREEN
  1. Change line 224 from TFT_ILI9163C* tft = NULL ; to Adafruit_ST7735* tft = NULL ;

  2. Change lines 2763 to 2766 which will look like this

    tft = new TFT_ILI9163C ( ini_block.tft_cs_pin,
                             ini_block.tft_dc_pin ) ;    
    tft->begin() ;                                   
    tft->fillRect ( 0, 0, 160, 128, BLACK ) ; 

to the following:

    tft = new Adafruit_ST7735 ( ini_block.tft_cs_pin,
                             ini_block.tft_dc_pin, 0 ) ;    
    tft->initR(INITR_BLACKTAB);                                      
    tft->fillScreen(BLACK);
  1. Delete line 2768 which is tft->clearScreen() ;

Thats all.

from esp32-radio.

Related Issues (20)

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.