Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define glcdData0Pin 8 // 7
- #define glcdData1Pin 9 // 8
- #define glcdData2Pin 10 // 9
- #define glcdData3Pin 11 // 10
- #define glcdData4Pin 4 // 11
- #define glcdData5Pin 5 // 12
- #define glcdData6Pin 6 // 13
- #define glcdData7Pin 7 // 14
- // PINOS DE CONTROLE
- // RESET 1 => LIGA GLCD
- // 0 => DESLIGA GLCD
- #define glcdCSEL1 14 (Analog pin 0) // 15
- #define glcdCSEL2 15 (Analog pin 1) // 18
- #define glcdRW 16 (Analog pin 2) // 5
- #define glcdDI 17 (Analog pin 3) // 4
- #define glcdEN 18 (Analog pin 4) // 6
- // inclui bibliotecas de glcd
- #include <glcd.h>
- #include "fonts/allFonts.h" //
- #include "imagem.h" // inclui a imagens neste arquivo
- void setup() {
- // Initialize the GLCD
- GLCD.Init();
- // Seleciona o tamanho da fonte de escrita
- GLCD.SelectFont(System5x7);
- GLCD.print("Seja Bem Vindo");
- }
- void loop() {
- GLCD.DrawBitmap(arduino, 0, 0, BLACK);
- delay(2000);
- GLCD.DrawBitmap(logoblog, 0, 0, BLACK);
- delay(2000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement