1.8 tft display module st7735s 128x160 arduino made in china

The 1.8" display has 128x160 color pixels. The TFT driver (ST7735) can display full 18-bit color. The breakout has the TFT display soldered on (it uses a delicate flex-circuit connector)

In the above example, Node32-Lite and this 1.8-inch LCD.  Please refer to the tutorial here: ST7735S interfacing with ESP32 to make the connections, Arduino library installation, and modification needed for it to works on this LCD.

1.8 tft display module st7735s 128x160 arduino made in china

The 1.8" display has 128x160 color pixels. The TFT driver (ST7735) can display full 18-bit color. The breakout has the TFT display soldered on (it uses a delicate flex-circuit connector)

In the above example, Node32-Lite and this 1.8-inch LCD.  Please refer to the tutorial here: ST7735S interfacing with ESP32 to make the connections, Arduino library installation, and modification needed for it to works on this LCD.

1.8 tft display module st7735s 128x160 arduino made in china

Ckingway technology Co., Ltd. Established in 2009, we focus researching & developing, design, manufacture and sales integrated into one target on resistive touch panel, capacitive touch panel and LCD/LCM (liquid crystal display module). Coming along with electronics consumer products increasing rapidly recently, our product has been holding steady marketing share in touch display field under our teamwork strongly, while industry chain getting more ruggedized, professionalized.

1.8 tft display module st7735s 128x160 arduino made in china

I recently bought a cheap TFT display for a project I was doing and after a bit of research I decided upon a 1.8" 128x160 ST7735 Display from Karen"s eShop on eBay, it"s very affordable and looked great for my project. On the product page, the seller has got some really great, detailed instructions for getting the screen to work on an Arduino, however, I couldn"t find anywhere online for getting this screen to work on a Raspberry Pi. This post will quickly save you the trial and error of getting a ST7735 working with a Raspberry Pi.

I found a library for the screens using the ST7735 chip on GitHub. The instructions and examples on GitHub will work fine, but this is for a different size of the screen, the instructions and example code here will work from the 128x160 display from Karen"s eShop.

1.8 tft display module st7735s 128x160 arduino made in china

A better way to update the display is to clear only the parts that have changed. Clearing the entire display only to update a number somewhere will create a noticeable flicker. To update a text or number use the DIS_ST7735_fillRect() function to erase that part of the screen with the background color then print new data in place. A code example can be found at the end.

the integer number. The default type is int32_t that can display numbers in the range -2147483648 to 2147483647. If you need larger numbers change the INT_SIZE typedef to int64_t.

Tip: if you see random pixels when displaying the image on the display, make sure the width and height parameters provided to the function are the same as image size.

To read and display Bitmap images (16 or 24-bits) from an SD memory card there is a separate library for this purpose at this link https://www.programming-electronics-diy.xyz/2022/05/displaying-bitmap-images-on-st7735.html.

1.8 tft display module st7735s 128x160 arduino made in china

C: \Users\guido\AppData\Local\Temp\arduino_modified_sketch_390395\graphicstest.ino: 123: 397: warning: deprecated conversion from string constant to "char*" [-Wwrite - strings]

C: \Users\guido\OneDrive\Arduino Save Location\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp: In member function "bool Adafruit_I2CDevice::write(const uint8_t*, size_t, bool, const uint8_t*, size_t)":

C: \Users\guido\OneDrive\Arduino Save Location\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp: 88: 47: error: invalid conversion from "const uint8_t* {aka const unsigned char*}" to "uint8* {aka unsigned char*}" [-fpermissive]

C: \Users\guido\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Wire / utility / WireBase.h: 123: 12: error:   initializing argument 1 of "size_t WireBase::write(uint8*, int)" [-fpermissive]

C: \Users\guido\OneDrive\Arduino Save Location\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp: 97: 31: error: invalid conversion from "const uint8_t* {aka const unsigned char*}" to "uint8* {aka unsigned char*}" [-fpermissive]

C: \Users\guido\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Wire / utility / WireBase.h: 123: 12: error:   initializing argument 1 of "size_t WireBase::write(uint8*, int)" [-fpermissive]

1.8 tft display module st7735s 128x160 arduino made in china

TFT LCD Display Module has always been one of the hot products in DIY industry and LCD is basically the necessary products during all projects, at the same time, serial port modules are also the popular ones, because it takes few IO and the usage is simple. This section of the 1.8-inch TFT LCD serial SPI integrated features of compact, SPI interface.

1.8 tft display module st7735s 128x160 arduino made in china

We were already playing around with LED MATRIX for time and temperature display with a Wi-Fi connection on an ESP8266, but we didn’t create yet a project with an RTC (Real Time Clock) module and an 1.8 inch TFT display; here we go. We will use again a ready to go code, but we will change it a bit for better looking. SO, we will learn How-To code rectangles and lines for a TFT screen, very easy… It is GOOD to try out different components to get used with coding, Maker, MakerED… Especially when we use displays, which ever ones, as one sees directly the results; sensation of direct success!!

The tutorial in the video shows an Arduino UNO, but we will use in this tutorial an Arduino NANO as it is less expensive (+/- 1/3 of the price of an Arduino UNO) and also it takes less place when integrating the components into a box.

As you can see above the “Arduino IDE” shows an error and highlighted it in Line 1. The sign “<” is too much, delete it and save your sketch, then upload it again to the Arduino NANO. You might get a second error message again, check below please.

As you can see, I added some new code snippet from lines 142 to 151, this will draw a rectangle around the TFT screen and it will draw white lines under the measured values. It will look BETTER, well that’s what I think and my wife as well; you just do the way as you want, up to you