Difference between revisions of "IPS Display 1.22 inch"

From
Jump to: navigation, search
(Code - HELLO WORLD -)
(Code - HELLO WORLD -)
Line 44: Line 44:
 
----
 
----
  
[[File:UNO v3 front angle.jpg|125px]]
+
[[File:UNO v3 front angle.jpg|150px]]
[[File:Base Shield V2 recto plat.jpg|125px]]
+
[[File:Base Shield V2 recto plat.jpg|150px]]
 
[[File:1.22 Inch IPS Display 1.PNG|150px]]
 
[[File:1.22 Inch IPS Display 1.PNG|150px]]
  

Revision as of 14:34, 31 August 2025

Grove - IPS Display 1.22 inch (Seeed-Studio)

Caractéristiques

RGB OLED Display 1.22 <ST7789> v1.0
écran à cristaux liquides de 1,2 pouce
240 x 240 pixels
l'écran peut afficher jusqu'à 65 000 couleurs RGB
3.3V or 5V
l'écran utilise le ST7789 comme circuit intégré de pilotage
l'écran utilise la technologie IPS. Quel que soit l'angle de vue, l'expérience visuelle est quasiment identique sous tous les angles.

1.22 Inch IPS Display 1.PNG 1.22 Inch IPS Display 2.PNG

1.22 Inch IPS Display 3.PNG

Sa bibliothèque de pilotes open source et son code d'exemple facilitent la prise en main

Communication

D7 (D7/D8) port

Liens externes

https://www.seeedstudio.com/Grove-1-2-Inch-IPS-Display-p-5699.html  shop

wiki.seeedstudio.com/grove_1.2inch  wiki

Bibliothèques

il faut installer les 3 librairies ici :

https://github.com/adafruit/Adafruit-GFX-Library
https://github.com/adafruit/Adafruit_BusIO
https://github.com/limengdu/Arduino_ST7789_Fast/tree/master

La librairie Arduino_ST7789_Fast a été mis à jours, en août 2025, veuillez réinstaller la bibliothèque en cas de problème.

Code - HELLO WORLD -



UNO v3 front angle.jpg Base Shield V2 recto plat.jpg 1.22 Inch IPS Display 1.PNG

Arduino IDE 2.3.6
Arduino UNO
Base Shield (5 Volts)
Grove-1.2 Inch IPS Display (Port D7)
ici OK

Testé sur D8, ici rien aucun affichage


Grove Base for XIAO 1.PNG XIAO RA4M1 4.PNG 1.22 Inch IPS Display 2.PNG

Grove Base for XIAO
XIAO-RA4M1
RGB OLED IPS Display 1.22 inch <ST7789>, Port D7

KO, rien à l'écran !

#include <Adafruit_GFX.h>
#include <Arduino_ST7789_Fast.h>

#define SCK   7
#define SDA   8

Arduino_ST7789 lcd = Arduino_ST7789(SCK, SDA);

void setup(void)
{
    lcd.init();
    lcd.fillScreen(BLACK);

    lcd.setCursor(0, 0);
    lcd.setTextColor(RED,BLACK);
    lcd.setTextSize(3);
    lcd.println("HELLO WORLD");
}

void loop()
{

}

https://github.com/adafruit/Adafruit-ST7735-Library/tree/master

#include <Adafruit_GFX.h> // graphics library
#include <Adafruit_ST7789.h> // library for this display
#include <SPI.h>

#define TFT_CS 7 // if your display has CS pin
#define TFT_DC 8  // data pin


#define TFT_RST -1 // reset pin

Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);

void setup() {
  tft.init(240, 240, SPI_MODE2); 
  tft.setRotation(2); // rotates the screen
  tft.fillScreen(ST77XX_BLACK); // fills the screen with black colour
  tft.setCursor(10, 10); // starts to write text at y10 x10
  tft.setTextColor(ST77XX_WHITE); // text colour to white you can use hex codes like 0xDAB420 too
  tft.setTextSize(3); // sets font size
  tft.setTextWrap(true);
  tft.print("HELLO WORLD!");
}
void loop() {
  
  }