• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ LCD_CmdWrite函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中LCD_CmdWrite函数的典型用法代码示例。如果您正苦于以下问题:C++ LCD_CmdWrite函数的具体用法?C++ LCD_CmdWrite怎么用?C++ LCD_CmdWrite使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了LCD_CmdWrite函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DMA_BlockWidthSet

//0xb4: Block Width REG 0(BWR0) / DMA Transfer Number REG 0 (DTNR0)
//0xb5: Block Width REG 1 (BWR1)
void DMA_BlockWidthSet(uint16_t width)
{
		LCD_CmdWrite(0xb4);
		LCD_DataWrite(width);
		LCD_CmdWrite(0xb5);
		LCD_DataWrite(width >> 8);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例2: DMA_BlockHeightSet

//0xb6: Block Height REG 0(BHR0) / DMA Transfer Number REG 1 (DTNR1)
//0xb7: Block Height REG 1(BHR1)
void DMA_BlockHeightSet(uint16_t height)
{
		LCD_CmdWrite(0xb6);
		LCD_DataWrite(height);
		LCD_CmdWrite(0xb7);
		LCD_DataWrite(height >> 8);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例3: Draw_TriangleXPoint2Set

//0xa9: Draw Triangle Point 2 Horizontal Address Register 0 (DTPH0)
//0xaa: Draw Triangle Point 2 Horizontal Address Register 1 (DTPH1)
void Draw_TriangleXPoint2Set(uint16_t XPoint2)
{
		LCD_CmdWrite(0xa9);
		LCD_DataWrite((uint8_t)XPoint2);
		LCD_CmdWrite(0xaa);
		LCD_DataWrite((uint8_t)(XPoint2>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例4: Draw_TriangleYPoint2Set

//0xab: Draw Triangle Point 2 Vertical Address Register 0 (DTPV0)
//0xac: Draw Triangle Point 2 Vertical Address Register 1 (DTPV1)
void Draw_TriangleYPoint2Set(uint16_t YPoint2)
{
		LCD_CmdWrite(0xab);
		LCD_DataWrite((uint8_t)YPoint2);
		LCD_CmdWrite(0xac);
		LCD_DataWrite((uint8_t)(YPoint2>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例5: Draw_EESYCenterSet

//0xa7: Draw Ellipse/Ellipse Square Center Vertical Address Register 0 (DEVR0)
//0xa8: Draw Ellipse/Ellipse Square Center Vertical Address Register 1 (DEHR1)
void Draw_EESYCenterSet(uint16_t YCenter)
{
		LCD_CmdWrite(0xa7);
		LCD_DataWrite((uint8_t)YCenter);
		LCD_CmdWrite(0xa8);
		LCD_DataWrite((uint8_t)(YCenter>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例6: Draw_EESXCenterSet

//0xa5: Draw Ellipse/Ellipse Square Center Horizontal Address Register 0 (DEHR0)
//0xa6: Draw Ellipse/Ellipse Square Center Horizontal Address Register 1 (DEHR1)
void Draw_EESXCenterSet(uint16_t XCenter)
{
		LCD_CmdWrite(0xa5);
		LCD_DataWrite((uint8_t)XCenter);
		LCD_CmdWrite(0xa6);
		LCD_DataWrite((uint8_t)(XCenter>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例7: Draw_EESShortAxisSet

//0xa3: Draw Ellipse/Ellipse Square Short Axis Setting Register (ELL_B0)
//0xa4: Draw Ellipse/Ellipse Square Short Axis Setting Register (ELL_B1)
void Draw_EESShortAxisSet(uint16_t shortAxis)
{
		LCD_CmdWrite(0xa3);
		LCD_DataWrite((uint8_t)shortAxis);
		LCD_CmdWrite(0xa4);
		LCD_DataWrite((uint8_t)(shortAxis>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例8: DMA_SourcePicWidthSet

//0xb9: Source Picture Width REG1(SPWR1)
void DMA_SourcePicWidthSet(uint16_t width)
{
		LCD_CmdWrite(0xb8);
		LCD_DataWrite(width);
		LCD_CmdWrite(0xb9);
		LCD_DataWrite(width >> 8);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:8,代码来源:RA8875.c


示例9: LCD_Init

/**************************************************************************************************
void LCD_Init(uint8_t v_lcdNoOfLines_u8, uint8_t v_MaxCharsPerLine_u8)
***************************************************************************************************
 * Function name:  LCD_Init()
 * I/P Arguments:  uint8_t: Number of lines of LCD
                   uint8_t: Number of Chars per line
 * Return value    : none

 * description  :This function is used to initialize the lcd.
                 *It initializes the LCD for selected mode(4/8-bit) and Type(16x2/16x1 etc)
**************************************************************************************************/
void LCD_Init(uint8_t v_lcdNoOfLines_u8, uint8_t v_MaxCharsPerLine_u8)
{


    LCDConfig.v_MaxSupportedChars_U8 = v_MaxCharsPerLine_u8; //Maintaian the LCD type
    LCDConfig.v_MaxSupportedLines_U8 = v_lcdNoOfLines_u8;
    if(v_lcdNoOfLines_u8 > C_LcdLineTwo)
    {
        ARR_LcdLineNumAddress_U8[C_LcdLineTwo] =  0x90 + (v_MaxCharsPerLine_u8 & 0x0fu);
        ARR_LcdLineNumAddress_U8[C_LcdLineThree] =  0xd0 + (v_MaxCharsPerLine_u8 & 0x0fu);
    }

    DELAY_ms(100);

    if(LCDConfig.v_LcdMode_U8 == C_EightBitMode_U8)
    {
        LCD_CmdWrite(CMD_LCD_EIGHT_BIT_MODE); // Initialize the LCD for 8-bit 5x7 matrix type
    }
    else if(LCDConfig.v_LcdMode_U8 == C_FourBitMode_U8)
    {
        lcd_Reset();
        LCD_CmdWrite(CMD_LCD_FOUR_BIT_MODE); // Initialize the LCD for 4-bit 5x7 matrix type 
    }

    LCD_CmdWrite(CMD_DISPLAY_ON_CURSOR_ON);     // Display ON cursor ON
    LCD_Clear();                             // Clear the LCD and go to First line First Position
}
开发者ID:ExploreEmbedded,项目名称:LPC2148_Stick,代码行数:38,代码来源:lcd.c


示例10: Backlight_PWM2Initial

void Backlight_PWM2Initial(void)
{
		LCD_CmdWrite(0x8c);//PWM setting
		LCD_DataWrite(0x80);
		LCD_CmdWrite(0x8c);//PWM setting
		LCD_DataWrite(0x81);//open PWM
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:7,代码来源:RA8875.c


示例11: Graphic_CursorXPostionSet

//0x80: Graphic Cursor Horizontal Position Register 0 (GCHP0)
//0x81: Graphic Cursor Horizontal Position Register 1 (GCHP1)
void Graphic_CursorXPostionSet(uint16_t XPosition)
{
		LCD_CmdWrite(0x80);
		LCD_DataWrite((uint8_t)XPosition);
		LCD_CmdWrite(0x81);
		LCD_DataWrite((uint8_t)(XPosition>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例12: Memory_CursorXPositiomSet

//0x46: Memory Write Cursor Horizontal Position Register 0 (CURH0)
//0x47: Memory Write Cursor Horizontal Position Register 1 (CURH1)
void Memory_CursorXPositiomSet(uint16_t XPosition)
{
		LCD_CmdWrite(0x46);
		LCD_DataWrite((uint8_t)XPosition);
		LCD_CmdWrite(0x47);
		LCD_DataWrite((uint8_t)(XPosition >> 8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例13: Memory_CursorYPositiomSet

//0x48: Memory Write Cursor Vertical Position Register 0 (CURV0)
//0x49: Memory Write Cursor Vertical Position Register 1 (CURV1)
void Memory_CursorYPositiomSet(uint16_t YPosition)
{
		LCD_CmdWrite(0x48);
		LCD_DataWrite((uint8_t)YPosition);
		LCD_CmdWrite(0x49);
		LCD_DataWrite((uint8_t)(YPosition >> 8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例14: Draw_EESLongAxisSet

//0xa1: Draw Ellipse/Ellipse Square Long Axis Setting Register (ELL_A0)
//0xa2: Draw Ellipse/Ellipse Square Long Axis Setting Register (ELL_A1)
void Draw_EESLongAxisSet(uint16_t longAxis)
{
		LCD_CmdWrite(0xa1);
		LCD_DataWrite((uint8_t)longAxis);
		LCD_CmdWrite(0xa2);
		LCD_DataWrite((uint8_t)(longAxis>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例15: Graphic_CursorYPositionSet

//0x82: Graphic Cursor Vertical Position Register 0 (GCVP0)
//0x83: Graphic Cursor Vertical Position Register 1 (GCVP1)
void Graphic_CursorYPositionSet(uint16_t YPosition)
{
		LCD_CmdWrite(0x82);
		LCD_DataWrite((uint8_t)YPosition);
		LCD_CmdWrite(0x83);
		LCD_DataWrite((uint8_t)(YPosition>>8));
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:9,代码来源:RA8875.c


示例16: LCD_Init

/**
 * FUNCTION_PURPOSE:LCD Initialization
 * FUNCTION_INPUTS: void
 * FUNCTION_OUTPUTS: none
 */
void LCD_Init()
{
  sdelay(100);
  LCD_CmdWrite(0x38);   	// LCD 2lines, 5*7 matrix
  LCD_CmdWrite(0x0E);			// Display ON cursor ON  Blinking off
  LCD_CmdWrite(0x01);			// Clear the LCD
  LCD_CmdWrite(0x80);			// Cursor to First line First Position
}
开发者ID:yashbhalgat,项目名称:Microprocessors-Mini-Project,代码行数:13,代码来源:lcd.c


示例17: BTE_HeightSet

//0x5e: BTE Height Register 0 (BEHR0)
//0x5f: BTE Height Register 1 (BEHR0)
void BTE_HeightSet(uint16_t height)
{
		uint8_t temp = (uint8_t)(height % 0x100);
		LCD_CmdWrite(0x5e);
		LCD_DataWrite(temp);
		temp = (uint8_t)(height / 0x100);
		LCD_CmdWrite(0x5f);
		LCD_DataWrite(temp);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:11,代码来源:RA8875.c


示例18: BTE_WidthSet

//0x5c: BTE Width Register 0 (BEWR0)
//0x5d: BTE Width Register 1 (BEWR1)
void BTE_WidthSet(uint16_t width)
{
		uint8_t temp = (uint8_t)(width % 0x100);
		LCD_CmdWrite(0x5c);
		LCD_DataWrite(temp);
		temp = (uint8_t)(width / 0x100);
		LCD_CmdWrite(0x5d);
		LCD_DataWrite(temp);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:11,代码来源:RA8875.c


示例19: BTE_YDstPointSet

//0x5a: Vertical Destination Point 0 of BTE (VDBE0) 
//0x5b: Vertical Destination Point 1 of BTE (VDBE1)
void BTE_YDstPointSet(uint16_t YDst)
{
		uint8_t temp = (uint8_t)(YDst % 0x100);
		LCD_CmdWrite(0x5a);
		LCD_DataWrite(temp);
		temp = (uint8_t)(YDst / 0x100);
		LCD_CmdWrite(0x5b);
		LCD_DataWrite(temp);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:11,代码来源:RA8875.c


示例20: BTE_XDstPointSet

//0x58: Horizontal Destination Point 0 of BTE (HDBE0)
//0x59: Horizontal Destination Point 1 of BTE (HDBE1)
void BTE_XDstPointSet(uint16_t XDst)
{
		uint8_t temp = (uint8_t)(XDst % 0x100);
		LCD_CmdWrite(0x58);
		LCD_DataWrite(temp);
		temp = (uint8_t)(XDst / 0x100);
		LCD_CmdWrite(0x59);
		LCD_DataWrite(temp);
}
开发者ID:lengmi,项目名称:PlasterV2_0,代码行数:11,代码来源:RA8875.c



注:本文中的LCD_CmdWrite函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ LCD_DEBUG函数代码示例发布时间:2022-05-30
下一篇:
C++ LCD_ClearLine函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap