📄 lcdtest.c
字号:
#ifdef PRODUCT_INFO
// Show the Product Information
void ShowProductInfo(void)
{
tLCM LCD_Info;
LCD_Info.Name = "EG128064B-Y";
LCD_Info.Customer = "Chuan Yang";
#if defined(MCU_6800)
LCD_Info.Interface = "6800 8-BIT";
#elif defined(MCU_8080)
LCD_Info.Interface = "8080 8-BIT";
#elif defined(LCD_4SPI)
LCD_Info.Interface = "4-wire SPI";
#elif defined(LCD_3SPI)
LCD_Info.Interface = "3-wire SPI";
#elif defined(LCD_I2C)
LCD_Info.Interface = "2-wire I2C";
#endif
disp_ascii0816(LCD_Info.Name, 6, 16);
disp_ascii0816(LCD_Info.Interface, 4, 16);
disp_ascii0816(LCD_Info.Customer, 2, 16);
wait_and_clear();
}
#endif
// Display Standard Testing Graphics
void LCD_Test(void)
{
uint8 i;
uint8 code TestData[][2] =
{
{0xFF,0xFF}, // All
{0x00,0x00}, // None
{0xFF,0x00}, // Virtical 1
{0x00,0xFF}, // Virtical 2
{0xAA,0xAA}, // Horizontal 1
{0x55,0x55}, // Horizontal 2
{0xAA,0x55}, // Stars 2
{0x55,0xAA}, // Stars 2
};
#ifdef PRODUCT_INFO
// Show the Product Information
ShowProductInfo();
#endif
// Display 8 Standard Test Graphics
for (i = 0; i < 8; i++)
{
Tile(TestData[i][0], TestData[i][1]);
wait_and_clear();
}
// Display Fullscreen Rectangle
RectFullscreen();
wait_and_clear();
// Display Company's Logo
disp_hanzi("新林电子", LCD_PMAX/2 + 1, (LCD_CMAX - 64)/2);
disp_ascii0508("ViGOUR TECHNOLOGY", LCD_PMAX/2 - 2, (LCD_CMAX - 102)/2);
RectFullscreen();
wait_and_clear();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -