Henrique Rosa
/
ILI9341_01_PAR8_Teste_V3
Testanto funções Display
main.cpp
- Committer:
- henriquer
- Date:
- 2021-04-22
- Revision:
- 2:f603020cd6ec
- Parent:
- 1:a5ccd53612ea
- Child:
- 3:34ff58aca6db
- Child:
- 4:2d8f54d22dbd
File content as of revision 2:f603020cd6ec:
// ****** Henrique ****** 22/04/21 // Testanto funções Display // ************** Display TFT- ILI9341 Versão V 2 ************** \\ #include "Arduino.h" #include <MCUFRIEND_kbv.h> MCUFRIEND_kbv tft; Serial pc(SERIAL_TX, SERIAL_RX); // #define BLACK 0x0000 #define BLUE 0x001F #define RED 0xF800 #define GREEN 0x07E0 #define CYAN 0x07FF #define MAGENTA 0xF81F #define YELLOW 0xFFE0 #define WHITE 0xFFFF #define GRAY 0x8410 void setup() { uint16_t ID = tft.readID(); // tft.begin(ID); } void loop() { tft.fillScreen(BLACK); tft.setTextColor(RED);; tft.setCursor(30, 160); tft.setTextSize(3); tft.print("INSPER-LSM "); delay(5000); } int main() { setup(); while (1) { loop(); } }