|
|
|
|
@ -84,33 +84,8 @@ int __attribute__((noreturn)) main(void) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SOFTTIMER(1,250) {
|
|
|
|
|
updateTemperature();
|
|
|
|
|
displayTemperature();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* SOFTTIMER(3,100) {
|
|
|
|
|
/* uint8_t foo[4];
|
|
|
|
|
foo[0]=0x55;
|
|
|
|
|
foo[1]=0x88;
|
|
|
|
|
foo[3]=0x23;
|
|
|
|
|
spi_mst_write_read(2,foo);
|
|
|
|
|
spi_mst_start_packet();
|
|
|
|
|
spi_mst_write_read(2,foo+2);
|
|
|
|
|
spi_mst_end_packet();
|
|
|
|
|
|
|
|
|
|
uint16_t foo=0x3456;
|
|
|
|
|
foo=spi_master_communicate(3,5,foo);
|
|
|
|
|
display_gotoyx(0,0);
|
|
|
|
|
display_puthex(foo[0]);
|
|
|
|
|
display_puthex(foo[1]);
|
|
|
|
|
display_puthex(foo[2]);
|
|
|
|
|
display_puthex(foo[3]);
|
|
|
|
|
display_puthex((foo>>8)&0xff);
|
|
|
|
|
display_puthex((foo)&0xff);
|
|
|
|
|
display_puts("\nfoo");
|
|
|
|
|
display_update();
|
|
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|