Flash这么大,主频这么高,最笨的方法可能就是最靠谱的方法:
//bit0:
if(dat & (1<<0))
GPIO_SetBits(Port_LCD_SCL, Pin_LCD_SCL);
else
GPIO_ResetBits(Port_LCD_SCL, Pin_LCD_SCL);
//bit1:
if(dat & (1<<1))
GPIO_SetBits(Port_LCD_SDA, Pin_LCD_SDA);
else
GPIO_ResetBits(Port_LCD_SDA, Pin_LCD_SDA);
//bit2:
……
|