本文整理汇总了C++中LCD_DataWrite函数的典型用法代码示例。如果您正苦于以下问题:C++ LCD_DataWrite函数的具体用法?C++ LCD_DataWrite怎么用?C++ LCD_DataWrite使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LCD_DataWrite函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LCD_SoftReset
//Èí¼þ¸´Î»£¬¿ÉÄÜÔì³ÉÏÔʾÆÁÒì³££¬²»½¨ÒéʹÓÃ
void LCD_SoftReset(void)
{
LCD_CmdWrite(0x01);
LCD_DataWrite(0x01);
LCD_DataWrite(0x00);
SysCtlDelay(SysCtlClockGet()/10);
}
示例2: Backlight_PWM2Initial
void Backlight_PWM2Initial(void)
{
LCD_CmdWrite(0x8c);//PWM setting
LCD_DataWrite(0x80);
LCD_CmdWrite(0x8c);//PWM setting
LCD_DataWrite(0x81);//open PWM
}
示例3: LCD_VerticalPixelSet
//0x19: LCD Vertical Display Height Register (VDHR0)
//0x1a: LCD Vertical Display Height Register0 (VDHR1)
void LCD_VerticalPixelSet(uint16_t verticalPixels)
{
uint8_t tmp = (uint8_t)(verticalPixels%0x100-1);
LCD_CmdWrite(0x19); //VDHR0 //Vertical Display Height Bit [7:0]
LCD_DataWrite(tmp);//Vertical pixels = VDHR + 1
tmp = (uint8_t)verticalPixels/0x100;
LCD_CmdWrite(0x1a); //VDHR1 //Vertical Display Height Bit [8]
LCD_DataWrite(tmp);//Vertical pixels = VDHR + 1
}
示例4: Draw_CircleYCenterSet
//0x9b: Draw Circle Center Vertical Address Register0 (DCVR0)
//0x9c: Draw Circle Center Vertical Address Register1 (DCVR1)
void Draw_CircleYCenterSet(uint16_t YCenter)
{
uint8_t temp = (uint8_t) YCenter;
LCD_CmdWrite(0x9b);
LCD_DataWrite(temp);
temp = (uint8_t)(YCenter >> 8);
LCD_CmdWrite(0x9c);
LCD_DataWrite(temp);
}
示例5: Draw_CircleXCenterSet
//0x99: Draw Circle Center Horizontal Address Register0 (DCHR0)
//0x9a: Draw Circle Center Horizontal Address Register1 (DCHR1)
void Draw_CircleXCenterSet(uint16_t XCenter)
{
uint8_t temp = (uint8_t) XCenter;
LCD_CmdWrite(0x99);
LCD_DataWrite(temp);
temp = (uint8_t)(XCenter >> 8);
LCD_CmdWrite(0x9a);
LCD_DataWrite(temp);
}
示例6: Draw_LSYEndSet
//0x97: Draw Line/Square Vertical End Address Register0 (DLVER0)
//0x98: Draw Line/Square Vertical End Address Register1 (DLVER1)
void Draw_LSYEndSet(uint16_t YEnd)
{
uint8_t temp = (uint8_t) YEnd;
LCD_CmdWrite(0x97);
LCD_DataWrite(temp);
temp = (uint8_t)(YEnd >> 8);
LCD_CmdWrite(0x98);
LCD_DataWrite(temp);
}
示例7: Draw_LSXEndSet
//0x95: Draw Line/Square Horizontal End Address Register0 (DLHER0)
//0x96: Draw Line/Square Horizontal End Address Register1 (DLHER1)
void Draw_LSXEndSet(uint16_t XEnd)
{
uint8_t temp = (uint8_t) XEnd;
LCD_CmdWrite(0x95);
LCD_DataWrite(temp);
temp = (uint8_t)(XEnd >> 8);
LCD_CmdWrite(0x96);
LCD_DataWrite(temp);
}
示例8: Draw_LSYStartSet
//0x93: Draw Line/Square Vertical Start Address Register0 (DLVSR0)
//0x94: Draw Line/Square Vertical Start Address Register1 (DLVSR1)
void Draw_LSYStartSet(uint16_t YStart)
{
uint8_t temp = (uint8_t) YStart;
LCD_CmdWrite(0x93);
LCD_DataWrite(temp);
temp = (uint8_t)(YStart >> 8);
LCD_CmdWrite(0x94);
LCD_DataWrite(temp);
}
示例9: Draw_LSXStartSet
//0x91: Draw Line/Square Horizontal Start Address Register0 (DLHSR0)
//0x92: Draw Line/Square Horizontal Start Address Register1 (DLHSR1)
void Draw_LSXStartSet(uint16_t XStart)
{
uint8_t temp = (uint8_t) XStart;
LCD_CmdWrite(0x91);
LCD_DataWrite(temp);
temp = (uint8_t)(XStart >> 8);
LCD_CmdWrite(0x92);
LCD_DataWrite(temp);
}
示例10: Window_ActiveXEndPointSet
//0x34: Horizontal End Point 0 of Active Window (HEAW0)
//0x35: Horizontal End Point 1 of Active Window (HEAW1)
void Window_ActiveXEndPointSet(uint16_t XEnd)
{
uint8_t temp = XEnd%0x100;
LCD_CmdWrite(0x34);
LCD_DataWrite(temp);
temp = XEnd/0x100;
LCD_CmdWrite(0x35);
LCD_DataWrite(temp);
}
示例11: PLL_Initial
void PLL_Initial(void)
{
LCD_CmdWrite(0x88);
LCD_DataWrite(0x0a);
__Delay1ms();
LCD_CmdWrite(0x89);
LCD_DataWrite(0x02);
__Delay1ms();
}
示例12: Window_ActiveYStartPointSet
//0x33: Vertical Start Point 1 of Active Window (VSAW0)
void Window_ActiveYStartPointSet(uint16_t YStart)
{
uint8_t temp = YStart%0x100;
LCD_CmdWrite(0x32);
LCD_DataWrite(temp);
temp = YStart/0x100;
LCD_CmdWrite(0x33);
LCD_DataWrite(temp);
}
示例13: Window_ActiveXStartPointSet
//0x31: Horizontal Start Point 1 of Active Window (HSAW1)
void Window_ActiveXStartPointSet(uint16_t XStart)
{
uint8_t temp = XStart%0x100;
LCD_CmdWrite(0x30);
LCD_DataWrite(temp);
temp = XStart/0x100;
LCD_CmdWrite(0x31);
LCD_DataWrite(temp);
}
示例14: Window_ScrollXEndPointSet
//0x3c: Horizontal End Point 0 of Scoll Window (HESW0)
//0x3d: Horizontal End Point 1 of Scoll Window (HESW1)
void Window_ScrollXEndPointSet(uint16_t XEnd)
{
uint8_t temp = XEnd%0x100;
LCD_CmdWrite(0x3c);
LCD_DataWrite(temp);
temp = XEnd/0x100;
LCD_CmdWrite(0x3d);
LCD_DataWrite(temp);
}
示例15: Window_ScrollYEndPointSet
//0x3e: Vertical End Point 0 of Scoll Window (VESW0)
//0x3f: Vertical End Point 1 of Scoll Window (VESW0)
void Window_ScrollYEndPointSet(uint16_t YEnd)
{
uint8_t temp = YEnd%0x100;
LCD_CmdWrite(0x3e);
LCD_DataWrite(temp);
temp = YEnd/0x100;
LCD_CmdWrite(0x3f);
LCD_DataWrite(temp);
}