29,6 → 29,8 |
{ |
output_toggle(PIN_D1); |
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(32768.0/0xFFFF); |
timer0_overflow_count=0; |
set_timer0(0); |
} |
|
#int_TIMER0 |
97,11 → 99,11 |
delay_ms(100); |
{ // printf |
|
// local_temp = ds1820_read()+273.15; |
sht_rd(SHT_temp,SHT_hum); |
local_temp = ds1820_read()+273.15; |
SHT_temp += 273.15; |
barometer_temperature = MPL_get_temperature() + 273.15; |
barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals |
// barometer_temperature = MPL_get_temperature() + 273.15; |
// barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals |
|
delay_us(SEND_DELAY); |
putc('$'); |