Difference between revisions of "IPS Display 1.22 inch"
(→Code) |
(→Code) |
||
| Line 36: | Line 36: | ||
[[File:1.22 Inch IPS Display 1.PNG|75px]] | [[File:1.22 Inch IPS Display 1.PNG|75px]] | ||
| + | Arduino IDE 2.3.6<br> | ||
Arduino UNO<br> | Arduino UNO<br> | ||
Base Shield (5 Volts)<br> | Base Shield (5 Volts)<br> | ||
| Line 41: | Line 42: | ||
Testé sur D8, ici rien aucun affichage | Testé sur D8, ici rien aucun affichage | ||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
Revision as of 20:51, 26 August 2025
Contents
Grove - IPS Display 1.22 inch (Seeed-Studio)
Caractéristiques
240 x 240 pixels
Up to 65k colors with RGB display
3.3V or 5V
The Grove-1.22 Inch IPS Display uses ST7789 as its driver IC (Integrated Circuit)
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
Code
Bibliothèques :
https://github.com/adafruit/Adafruit-GFX-Library
https://github.com/adafruit/Adafruit_BusIO
https://github.com/limengdu/Arduino_ST7789_Fast/tree/master
La librairie a été mis à jours, aout 2025, veuillez réinstaller la bibliothèque en cas de problème
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
#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() {
}