[an error occurred while processing this directive]
|
/* prepare the displayed temperatures */
/* read the temperature of DS1621 #0 *10°C */
t0=ds1621_temperature_10(0);
/* in the display_buffer */
sprintf(display_buffer,
"t0=%-i.%-u%cC\n",
t0/10,abs(t0%10),0xdf);
выдержка из хелпа.
при реальных 22 град тепла должно выдать t0=220 т.е последний байт равен нулю, что и показывает ваш "индикатор" :)
E-mail: info@telesys.ru