Posts

Showing posts from August, 2023

Adafruit_ImageReader exercises run on Raspberry Pi Pico to load images from SD Card, display on 320x240 IPS SPI ILI9341

Image
It's Adafruit_ImageReader exercises run on Raspberry Pi Pico to load images from SD Card, and display on 320x240 IPS SPI ILI9341 Module using using Adafruit_ILI9341 library. Basically follow the page Adafruit GFX Graphics Library Loading Images For 320x240 IPS SPI ILI9341 part using Adafruit_ILI9341 library, refer: ~  Raspberry Pi Pico (RP2040) + 3.2inch IPS SPI Module ILI9341 (using Adafruit_ILI9341 library)  It will also install Adafruit GFX Graphics Library as dependence. This exercise run on Raspberry Pi Pico in Earle Philhower's Arduino core (Raspberry Pi Pico/RP2040). refer: ~ Install Earle Philhower Raspberry Pi Pico Arduino core . Currently Adafruit_ImageReader support uncompressed 24-bit color BMPs only, refer: ~ Convert image to 24-bit color BMPs using GIMP  to prepare s1.bmp ~ s12.bmp, save in root directory of SD card. Install Adafruit_ImageReader and dependence in Arduino IDE Library Manager. Connection: ILI9341 Mod

Install Earle Philhower Raspberry Pi Pico Arduino core to fix error: 'rp2040' was not declared in this scope

Image
It's next Adafruit_ImageReader exercises run on Raspberry Pi Pico to load images from SD Card, and display on 320x240 IPS SPI ILI9341 Module using using Adafruit_ILI9341 library , following Adafruit GFX Graphics Library > Loading Images . But, if compile using Arduino Mbed OS RP2040 Boards, will fail with error: 'rp2040' was not declared in this scope It's another page by Adafruit, suggest Earle Philhower's Arduino core to program RP2040 in Arduino . This video show how to install Earle Philhower Raspberry Pi Pico Arduino core on Arduino IDE 2. In Arduino IDE > File > Preferences... Add the line in Additional Boards Manager URLs. https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json Install Raspberry Pi Pico/RP2040 by Earle F. Philhower III in Boards Manager. Select board of Raspberry Pi Pico/RP2040 > Raspberry Pi Pico If fail with error like: Fatal

Convert image to 24-bit color BMPs using GIMP (used for Adafruit_ImageReader)

Image
In coming exercise ( Adafruit_ImageReader exercises run on Raspberry Pi Pico to load images from SD Card, display on 320x240 IPS SPI ILI9341 ), I will follow the " Adafruit GFX Graphics Library " to load images from SD Card using Adafruit_ImageReader . Currently only uncompressed 24-bit color BMPs are supported. This video show steps to convert image to 24-bit color BMPs using GIMP.

Raspberry Pi Pico (RP2040) + 3.2inch IPS SPI Module ILI9341 (Arduino Framework using Adafruit_ILI9341 library)

Image
Display on 3.2inch IPS SPI Module ILI9341 with  Raspberry Pi Pico (in Arduino Framework using Adafruit_ILI9341 library). Install Libraries: Open Library Manager, install Adafruit_ILI9341 and dependencies. Connection:  ILI9341 Module           Raspberry Pi Pico      1 VCC 3V3 2 GND GND 3 LCD_CS GP17 4 LCD_RST GP21 5 LCD_RS GP20 6 SDI(MOSI) GP19 7 SCK GP18 8 LED 3V3 9 SDO(MISO) GP16 10 CTP_SCL 11 CTP_RST 12 CTP_SDA 13 CTP_INT 14 SD_CS Example: Open Adafruit ILI9341 graphicstest example. Modify pins assignment to match our connection. #define TFT_DC 20 #define TFT_CS 17 #define TFT_RST 21 // Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST); // If using the breakout, change pins as desired //Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO); updated@2023-08-17: To fix the color for this ILI9341 Module

3.2inch IPS SPI Module ILI9341 with cap. touch FT6336U

Image
3.2" TFT SPI 240x320 (ILI9341) with Capacitive Touch (FT6336U) ~ Product Page Example: ~  Raspberry Pi Pico (RP2040) + 3.2inch IPS SPI Module ILI9341 (Arduino Framework using Adafruit_ILI9341 library) ~  Adafruit_ImageReader exercises run on Raspberry Pi Pico to load images from SD Card, display on 320x240 IPS SPI ILI9341 ~  Detect FT6336U Capacitive Touch Screen on Raspberry Pi Pico using Arduino-FT6336U library . ~  Control 3.2" 240x320h IPS SPI Module ILI9341 with cap. touch FT6336U on Nologo Nano 33 BLE (Arduino Framework) ~  3.2" 320x240 IPS LCD (ILI9341 SPI) with Cap. Touch (FT6336) and Micro SD Slot on ESP32-S3/CircuitPython 9.0.3 ~  CircuitPython to download bmp images from web, and display on ILI9341 SPI TFT .