这个函数是怎么写半字节到 LCD 的?这个函数是怎么写半字节到 LCD 的?void DispDataWrOneNibble (CPU_INT08U data)
{
CPU_INT32U value;
BSP_LCD_DISP_RW_LO(); /* Set R/W write LOW to write to the LCD module. */
BSP_LCD_DISP_E_HI(); /* Write the UPPER nibble to the LCD module. */
value = ((data >> 4) & 0x0F);
GPIOPinWrite(GPIO_PORTA_BASE, BSP_GPIO_LCD_DB, value << 2);
DispDly_uS(1000);
BSP_LCD_DISP_E_LO();
} |