lpcware

lpc1850 lcd 游标

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Colin_Zou on Fri Sep 12 01:53:06 CDT 2014
刚接触 lpc1850 ,在调试 lcd,有个游标寄存器。 在原厂的例程中,会有

       Chip_LCD_Cursor_Disable(LPC_LCD, 0);
Chip_LCD_Cursor_Config(LPC_LCD, LCD_CURSOR_64x64, true);
Chip_LCD_Cursor_WriteImage(LPC_LCD, 0, (void *) Cursor);
Chip_LCD_Cursor_SetClip(LPC_LCD, CURSOR_H_OFS, CURSOR_V_OFS);
Chip_LCD_Cursor_SetPos(LPC_LCD, cursor_x, cursor_y);

Chip_LCD_Cursor_Enable(LPC_LCD, 0);
Chip_LCD_Cursor_LoadPalette0(LPC_LCD,0xff); // 我自己加的。
在屏幕上会显示一个红色图标。但是不是全部是红色的 ,而是有白色的。

[img=534x950]/zh-hans/system/files/user_images/1164855/QQ%E5%9B%BE%E7%89%8720140912144224.jpg[/img]

Outcomes