有时候超声波显示正常有时候就这样乱码, 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]);
代码是这样的大神可以帮萌新解释一下这个代码是怎么写的吗?
|