예제 #1
0
int main()
{
    unsigned char i=0;

    HalLcd_HW_Init();                //oled 初始化
    LCD_Fill(0xff);                  //屏全亮

    while(1)
    {
        for(i=0; i<8; i++)
        {
            LCD_P16x16Ch(i*16,0,i);  //点阵显示
            LCD_P16x16Ch(i*16,2,i+8);
            LCD_P16x16Ch(i*16,4,i+16);
            LCD_P16x16Ch(i*16,6,i+24);
        }
        HalHW_WaitMS(1000);
        LCD_CLS();
        LCD_P8x16Str(44,0,"saler");
        LCD_P8x16Str(20,2,"OLED DISPLAY");

        LCD_P8x16Str(8,4,"TEL:18588220515");
        LCD_P6x8Str(20,6,"*****@*****.**");
        LCD_P6x8Str(20,7,"2013-10-6 18:18");
        HalHW_WaitMS(1000);

        //LCD_CLS();
        //Draw_BMP(0,0,128,8,BMP);     //图片显示
        //DelayMS(1000);
    }
}
예제 #2
0
/**************************************************************************************************
 * @fn      HalLcdInit
 *
 * @brief   Initilize LCD Service
 *
 * @param   init - pointer to void that contains the initialized value
 *
 * @return  None
 **************************************************************************************************/
void HalLcdInit(void)
{
#if (HAL_LCD == TRUE)
  Lcd_Line1 = NULL;
  HalLcd_HW_Init();
#endif
}
예제 #3
0
/**************************************************************************************************
z-stack代码,未修改
 **************************************************************************************************/
void HalLcdInit(void)
{
#if (HAL_LCD == TRUE)
    HalLcd_HW_Init();
#endif
}