有時候超聲波顯示正常有時候就這樣亂碼, disbuff[0]=S1%1000/100; disbuff[1]=S1%1000%100/10;
disbuff[2]=S1%1000%100%10;
LCD_set_xy( 3, 5 );
LCD_Write_number(disbuff[0]);
LCD_Write_number(disbuff[1]);
LCD_set_xy( 3, 6 );
LCD_Write_number(disbuff[2]);
代碼是這樣的大神可以幫萌新解釋一下這個代碼是怎么寫的嗎?
|