![]() In this project I started with a big, 2521*1688 pixels jpg image downloaded from Wikipedia. Of course your smartphone has more pixels than the humble 240*240, which necessitates some cropping and scaling. A TFT display shows images as crisp and colorful as your smartphone’s screen does. While it is possible on OLED displays to show pictures, the constraint with this type of display is that pictures are always presented in monochrome. The 1.3”, 240*240 TFT is one of my favorite displays, not only because of its 65,536 available colors (16 bits per pixel, RGB565) but also because of its fast SPI interface which is meticulously supported by Bodmer’s TFT_eSPI.h library.Ĭompared with current LCD displays and OLED displays, TFT type screens offer the luxury of nearly unlimited color. ![]() Because the file size of a 240*240 color bitmap is way too large to fit program memory in an Arduino Uno we are using an ESP32 microcontroller board: ESP32-WROOM-32. The screen used is a 1.3 inch, 240*240 pixel TFT display with ST7789 controller and SPI interface. In the present project we convert a color picture into a c-array that is either included in a sketch or saved in a file that is called from within a sketch. Several ways exist to display bitmap images, pictures so to say, on a screen attached to an Arduino, ESP8266 or ESP32.
0 Comments
Leave a Reply. |