www.joy
-
it.net
Pascalstr. 8 47506 Neukirchen
-
Vluyn
#include
<Adafruit_GFX.h>
#include
<Adafruit_ST7789.h>
#include
<
SPI
.h>
#define
CS
-
1
// Declaration of Chip Select
#define
DC 5
// Declaration of Data / Command Pin
#define
RST 4
// Declaration of RESET Pin
// Initialize display
Adafruit_ST7789 lcd = Adafruit_ST7789(CS, DC, RST);
void
setup
(
void
) {
lcd.
init
(240, 240,
SPI_MODE2
);
lcd.setRotation(1);
delay
(500);
// fill Display with a colour and a String
lcd.fillScreen(0x22ED);
lcd.
setCursor
(20, 100);
lcd.setTextColor(ST77XX_WHITE);
lcd.setTextSize(6);
lcd.
(
"Joy
-
IT"
);
}
void
loop
() {
// empty
}