#include "project.h" void main (void) { u8 c; clock_init(); uart_init(); i2cb_init(); sht20_reset(); //enableInterrupts (); for (;;) { printf ("$SNTHD,%s,%s\n", sht20_temp_s(), sht20_humid_s()); while (!uart_rx (&c)) { if (c == 'R') sht20_reset(); } delay_ms (1000); } }