valszeg kurvara nem mukodik de nincs kedvem baszakodni ezzel xd
This commit is contained in:
parent
aaa399cefa
commit
ce1c87f400
48
lcd-tft.ino
Normal file
48
lcd-tft.ino
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#include "Adafruit_GFX.h"
|
||||||
|
#include "MCUFRIEND_kbv.h"
|
||||||
|
|
||||||
|
MCUFRIEND_kbv tft;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Szinek definialva vannak
|
||||||
|
|
||||||
|
Kurvara nincs kedvem egyesevel kikeresni ezeket a neten szoval termeszetesen
|
||||||
|
leloptam a gecibe mert ki a faszt erdekel
|
||||||
|
*/
|
||||||
|
#define BLACK 0x0000
|
||||||
|
#define LBLUE 0x000F
|
||||||
|
#define DARKGREEN 0x03E0
|
||||||
|
#define DARKCYAN 0x03EF
|
||||||
|
#define MAROON 0x7800
|
||||||
|
#define PURPLE 0x780F
|
||||||
|
#define OLIVE 0x7BE0
|
||||||
|
#define LIGHTGREY 0xC618
|
||||||
|
#define DARKGREY 0x7BEF
|
||||||
|
#define BLUE 0x001F
|
||||||
|
#define GREEN 0x07E0
|
||||||
|
#define CYAN 0x07FF
|
||||||
|
#define RED 0xF800
|
||||||
|
#define MAGENTA 0xF81F
|
||||||
|
#define YELLOW 0xFFE0
|
||||||
|
#define WHITE 0xFFFF
|
||||||
|
#define ORANGE 0xFD20
|
||||||
|
#define GREENYELLOW 0xAFE5
|
||||||
|
#define PINK 0xF81F
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
|
||||||
|
uint16_t ID=tft.readID();
|
||||||
|
tft.begin(ID);
|
||||||
|
tft.fillScreen(BLACK);
|
||||||
|
Serial.print("Screen initialized!");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
|
||||||
|
tft.setCursor(0, 0);
|
||||||
|
tft.setTextColor(WHITE);
|
||||||
|
tft.println("balu meleg");
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user