我想统一清HC908LK24中的LCD显示数据寄存器LDAT1-17,为什么下面的出错,“C1822:Type mismatch(expected"unsigned char *",given"int")??我就是把byte改成unsigned char 也还是出错. #define LCD_DATA_START 0x52 #define LCD_DATA_END 0x62
void LCDclear(void) { byte *LCDDataPointer; for(LCDDataPointer=LCD_DATA_START;LCDDataPointer<=LCD_DATA_END;LCDDataPointer++) { *LCDDataPointer = 0x00; } } |