Comments (2)
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.
To do this, do the following:
-
Get the lib for ST7735 here or install it with Library Manager (search for Adafruit_ST7735)
-
Include the header file for ST7735 instead of ILI9163. Change
#include <TFT_ILI9163C.h>
to#include <Adafruit_ST7735.h>
in Line 105 -
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
-
Change line 224 from
TFT_ILI9163C* tft = NULL ;
toAdafruit_ST7735* tft = NULL ;
-
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);
- Delete line 2768 which is
tft->clearScreen() ;
Thats all.
from esp32-radio.
Related Issues (20)
- main.cpp does not compile HOT 4
- Few qeustions before building HOT 4
- Audio Transformer HOT 12
- OLED SSD1306 128x32 support HOT 1
- Adding LCD screen created choppy audio HOT 5
- Newbie Help HOT 45
- ESP32 Won't Connect To My WiFi AP HOT 9
- Just a wish, analog line in / aux- in
- SD card unable to play. HOT 6
- How to compile in Visual Studio? HOT 2
- Adding ability to read pictures from USB
- Problem in compiling. HOT 1
- stations select
- IR receiver does not work on long press
- Maximum line length in config file - 150
- Choppy audio debug suggestions?
- Audio not working vs1053 HOT 8
- Can be combined with FM
- ESP32 Edzelf Radio HOT 11
- Dab dab+ remote control support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-radio.