JIT
Arduino RGB TFT Hello Gemini Gradient
I have an Arduino Uno and an RGB TFT Display (128x128). Write code that outputs the word 'Hello, Gemini 2.5 Pro' with a beautiful gradient matrix of blue and pink.

Okay, here is the Arduino code to display 'Hello, Gemini 2.5 Pro' on a 128x128 ST7735 TFT display with a blue-to-pink gradient background.

Before you upload:

  1. Install Libraries: You'll need the Adafruit GFX Library and the Adafruit ST7735 Library. You can install them using the Arduino Library Manager (Sketch -> Include Library -> Manage Libraries...). Search for and install both.
  2. Check Connections: Verify your TFT display's pin connections to the Arduino Uno. The code uses common default pins, but you might need to adjust the TFT_CS, TFT_DC, and TFT_RST definitions if your wiring is different.
    • TFT SCK -> Uno D13
    • TFT MOSI -> Uno D11
    • TFT CS -> Uno D10
    • TFT DC (or A0) -> Uno D9
    • TFT RST -> Uno D8
    • TFT VCC -> Uno 5V
    • TFT GND -> Uno GND
    • TFT BL (Backlight) -> Uno 3.3V or 5V (check display datasheet)
  3. TFT Driver Chip: This code assumes an ST7735 driver with the 'Black Tab' initialization (INITR_BLACKTAB). If your screen remains black, white, or shows distorted colors, try changing tft.initR(INITR_BLACKTAB); to tft.initR(INITR_GREENTAB); or tft.initR(INITR_REDTAB); or tft.initR(INITR_144GREENTAB); depending on your specific display model.

Upload this code to your Arduino Uno. Once uploaded, the TFT display should show the text "Hello," centered on the top half and "Gemini 2.5 Pro" centered on the bottom half, over a smooth vertical gradient background transitioning from blue at the top to pink at the bottom.

Updated files
v1