/*/////////////////////////////////////////////////////////////// This is a test program for using a SantechDisplay SD-G12232. (122*32 dots Graphic STN-LCD Module) The EPSON Contoroller SED1520 is mounted on this LCM. The SD-G12232 is 122 pixles across and 32 pixels down. The driver treats the upper left pixel as (0,0). Fuction Liblaly: GLCD_12232.C C-compier: CCS PCM CPU: PIC 16F887 on 44-pin Demo Board Programmer: PicKit2 ////////////////////////////////////////////////////////////////*/ #include <16F887.h> #use delay(clock=8000000) #fuses INTRC_IO, NOWDT, PUT, NOPROTECT, NOBROWNOUT #use fast_io(c) #use fast_io(d) #include "GLCD_12232.C" //Text Table char TextA[] = "Santech Display"; char TextB[] = "SD-G12232C"; ////////////////////////////////////////////////// void main() { set_tris_c(0x00); // graphic lcd control lines all output set_tris_d(0x00); //Set PortD to output glcd_init(ON); while(1) { glcd_fillScreen(OFF); glcd_text57(0,0,TextA,1,ON); glcd_text57(0,8,TextB,2,ON); glcd_circle(115,5,5,ON,ON); glcd_bar(5,25,50,31,2,ON); glcd_line(50,31,111,25,ON); glcd_rect(111,21,121,31,ON,ON); delay_ms(1000); bitmap_write(); delay_ms(1000); } }