Merge branch 'master' of ssh://ukleos.des-mesh.net/home/git/ukleos
This commit is contained in:
commit
c1e536d59c
@ -2,6 +2,7 @@
|
||||
#include <sht11.h>
|
||||
#include <board.h>
|
||||
#include <swtimer.h>
|
||||
#include <ltc4150.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
@ -12,6 +13,8 @@ int main(void)
|
||||
puts("LaSeR: Longterm Sensor Reader initialized.");
|
||||
puts("Printing \"temperature in °C;relative humidity;temperature compensated relative humidity\".");
|
||||
puts("");
|
||||
|
||||
ltc4150_start();
|
||||
|
||||
while (1) {
|
||||
success = sht11_read_sensor(&sht11_val, HUMIDITY|TEMPERATURE);
|
||||
@ -22,6 +25,6 @@ int main(void)
|
||||
printf("%.2f;%.2f;%.2f\n", sht11_val.temperature, sht11_val.relhum, sht11_val.relhum_temp);
|
||||
}
|
||||
LED_RED_TOGGLE;
|
||||
swtimer_usleep(1000 * 1000);
|
||||
swtimer_usleep(60 * 1000*1000);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user