cbi(LCD_CPORT, LCD_RESET); delay(1); sbi(LCD_CPORT, LCD_RESET); // Mode set: use CG ROM, OR text and graphics 0x80 LCDWriteCommand(0x80); // Set text home address to $0000 (i.e. doesn't matter) LCDWriteData(0x00); LCDWriteData(0x00); LCDWriteCommand(0x40); // Set text number of columns to 30. LCDWriteData(30); LCDWriteData(0); LCDWriteCommand(0x41); // Set graphics home address to 0, i.e. the first display, i.e. this // display. LCDWriteData(0); LCDWriteData(0); LCDWriteCommand(0x42); // Make sure the number of graphics "columns" is 30. LCDWriteData(30); LCDWriteData(0x00); LCDWriteCommand(0x43); // Set the display mode to graphics only, no cursor. LCDWriteCommand(0x98);