/******************************************* * I2C_LCD Header File * lcd_init() ----- Initialize LCD * lcd_cmd(cmd) ----- Command Output * lcd_data(data) ----- One Char Output * lcd_str(ptr) ----- String Data Output * lcd_clear() ----- All Delete ********************************************/ // I2C define #define LCD_SLVADRS_WR 0x7C /************************************* * Constant Value Ajustment Contorast **************************************/ //#define CONTRAST 0x18 // for 5.0V //#define CONTRAST 0x28 // for 3.3V #define CONTRAST 0x30 // for 3.3V /********************************* *@Define Aicon *********************************/ unsigned char ICON[14][2]={ {0x00, 0x10}, // ANT {0x02, 0x10}, // TEL {0x04, 0x10}, // REDIO {0x06, 0x10}, // JACK {0x07, 0x10}, // TRIANGLE (UP) {0x07, 0x08}, // TRIANGLE (DOWN) {0x07, 0x18}, // TRIANGLE (UP and DOWN) {0x09, 0x10}, // KEY {0x0B, 0x10}, // PIN {0x0D, 0x02}, // BATTERY (Cap: NON) {0x0D, 0x12}, // BATTERY (Cap: Limit) {0x0D, 0x1A}, // BATTERY (Cap: MID) {0x0D, 0x1E}, // BATTERY (Cap: FULL) {0x0F, 0x10} // CURCLE }; /// Prototype void Waitx1ms(int x); void Waitx1us(int x);