Difference between revisions of "IPS Display 1.22 inch"

From
Jump to: navigation, search
(Code)
(Code)
Line 26: Line 26:
  
 
https://github.com/limengdu/Arduino_ST7789_Fast/tree/master
 
https://github.com/limengdu/Arduino_ST7789_Fast/tree/master
 +
 +
 +
<pre>
 +
#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()
 +
{
 +
 +
}
 +
</pre>

Revision as of 16:58, 28 May 2025

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


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

1.22 Inch IPS Display 3.PNG

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

https://github.com/limengdu/Arduino_ST7789_Fast/tree/master


#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()
{

}