void main() { int i; initlcd(); for(i=0;i<504;i++) { pixelxy((i%84)-1,i/84); wrdata(tri[i]); } while(1); }
main() { int m; initPC(); initlcd(); if(RA0==0) { sendInst(0x01); sendInst(0x0C); //sendInst(0x0f); for(m=0; m<=5; m++) { sendInst(0x06); //increment cursor, display shift sendInst(0xC0); //address sendInst(0x18); //shift ryt sendData('t'); sendData('o'); sendData('m'); } for(m=0; m<=6; m++) { sendInst(0x06); //increment cursor, display shift sendInst(0xC0); //address sendInst(0x1F); //shift ryt sendData('t'); sendData('o'); sendData('m'); } mana(); } }
void main(void) { int i; TRISD = 0b00000111; // All SCK, SDI, D_C, _SCE and _RES are output pins. initlcd(); putstr(" PCD-8544 LCD "); // A test message.... Also a new year's greeting. :) cursorxy(0,1); // Next line. putstr("Graphical Demo"); for(;;) { for(i=0;i<num_of_points;i++) { plot_pt[i] = (char)(rand() % 256); // Generate random numbers. Default is 0-255. } plotline(plot_pt, num_of_points, 255, 10, 2); // Plot the smooth(er) line graph. plotbars(plot_pt, num_of_points, 255, 10, 4); // Plot the bar graph version with the same points. // DelayS(5); // Remark this line if you want to see some really blazing fast plotting. :) } }