Example #1
0
function loop(){
    switch(next)
    {
        case 0:
            lcd.invert(true)
            break;
        case 1:
            lcd.dim(true);
            break;
        case 2:
            lcd.invert(false);
            break;
        case 3:
            lcd.startscrollright(0x00, 0x0F);
            break;
        case 4:
            lcd.startscrollleft(0x00, 0x0F);
            break;
        case 5:
            lcd.startscrolldiagleft(0x00, 0x0F)
            break;
        case 6:
            lcd.startscrolldiagright(0x00, 0x0F)
            break;
        case 7:
            var logo = new lcdObj.uint8Array(intel_logo.length);
            for(var x = 0 ; x < intel_logo.length ; x++){
                logo.setitem(x, intel_logo[x]);
            }
            lcd.stopscroll();
            lcd.clear();
            lcd.draw(logo, 1024);
            break;
        case 8:
        default:
            lcd.stopscroll();
            lcd.clear();
            lcd.setCursor(2, 0);
            lcd.write("All");
            lcd.setCursor(3, 0);
            lcd.write("Done!");
            exit();
    }
    next++;
}
Example #2
0
0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 3, 3, 7, 7, 7,
7, 7, 7, 7, 7, 7, 0, 0, 0, 1, 3, 3, 3, 7, 7, 7, 7, 15, 15, 15, 15, 7, 7, 7,
7, 7, 3, 3, 3, 1, 0, 0, 0, 0, 1, 3, 3, 7, 135, 135, 135, 192, 192, 0, 0, 7,
7, 3, 3, 3, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 7, 15, 15,
31, 127, 127, 127, 255, 255, 252, 252, 252, 248, 240, 240, 240, 224, 224,
224, 192, 192, 192, 192, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 128, 128, 128, 128, 128, 128, 128, 192, 192, 192, 192, 192,
224, 224, 224, 224, 240, 240, 240, 240, 248, 248, 248, 248, 252, 252, 252,
254, 254, 255, 255, 255, 255, 255, 255, 127, 127, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
3, 3, 3, 7, 7, 7, 15, 15, 31, 31, 31, 63, 63, 63, 63, 63, 127, 127, 127,
127, 127, 255, 255, 255, 255, 254, 254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254,
255, 255, 255, 255, 255, 255, 255, 127, 127, 127, 127, 127, 127, 127, 127,
63, 63, 63, 63, 63, 31, 31, 31, 31, 31, 15, 15, 15, 15, 7, 7, 7, 7, 3, 3,
3, 3, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0];

var intelLogo = new LCD.uint8Array(logoArr.length);
for (var x = 0; x < logoArr.length; x++)
	intelLogo.setitem(x, logoArr[x]);

myLcd.clear();
myLcd.draw(intelLogo, 1024);

intelLogo = null;
myLcd = null;
LCD.cleanUp();
LCD = null;