/*========LCD DISPALY========// void lcd_display(uchar lcd_data_y[],uchar lcd_data_num) {uchar i,data_temp; lcd_address=0x00; i=0x00; do {data_temp=lcd_data_y; lcd_data =data_temp; lcd_address++; lcd_data=data_temp>>4; ldc_address++; i++; lcd_data_mum--; }while(lcd_data_num); leden=0; } //-------------main program------ void main() {uchar lcd_data_x[]={0x55,0x55,0x55,0x55,0x55};为什么是五个0X55? lcd_init();//驱动初始程序 lcd_display(lcd_data_x,5);这一句里为什么是5放到入lcd_data_num里面? while(1) {; } } |