Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <gLCD.h>
- // pin numbers for the LCD shield
- const char RST = 8;
- const char CS = 9;
- const char Clk = 13;
- const char Data = 11;
- // insert photo data here
- // note that if you don't have the RAM, you'll need to store it in ROM
- // byte photo[] = { .. }
- gLCD graphic(RST,CS,Clk,Data,HIGH_SPEED);
- void setup() {
- graphic.begin(0,0,0,PHILLIPS_1);
- graphic.Window(0,0,127,127);
- for(int i=0 ; i<(sizeof photo) ; i+=3) // send 3 bytes in 1 call, will draw 2 pixels
- graphic.twoPixels(photo[i], photo[i+1], photo[i+2]);
- }
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement