Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <UTFT.h>
- extern uint8_t SmallFont[];
- UTFT myGLCD(ITDB32WC,19,18,17,16);
- void setup()
- {
- randomSeed(analogRead(0));
- for(int p=2;p<10;p++)
- {
- pinMode(p,OUTPUT);
- }
- for(int x=A0; x<A5; x++) {
- pinMode(x,OUTPUT);
- digitalWrite(x, HIGH);
- }
- myGLCD.InitLCD();
- myGLCD.setFont(SmallFont);
- myGLCD.clrScr();
- myGLCD.setColor(255, 255, 255);
- myGLCD.setBackColor(0, 0, 0);
- }
- void loop()
- {
- myGLCD.print("Test screen", CENTER, 93);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement