当前位置: 首页>>代码示例>>C++>>正文


C++ LCD_CmdWrite函数代码示例

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


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


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