* changed interval for laser
This commit is contained in:
parent
17e41bae13
commit
d5b65f9866
@ -2,6 +2,7 @@
|
|||||||
#include <sht11.h>
|
#include <sht11.h>
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <swtimer.h>
|
#include <swtimer.h>
|
||||||
|
#include <ltc4150.h>
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
@ -12,6 +13,8 @@ int main(void)
|
|||||||
puts("LaSeR: Longterm Sensor Reader initialized.");
|
puts("LaSeR: Longterm Sensor Reader initialized.");
|
||||||
puts("Printing \"temperature in °C;relative humidity;temperature compensated relative humidity\".");
|
puts("Printing \"temperature in °C;relative humidity;temperature compensated relative humidity\".");
|
||||||
puts("");
|
puts("");
|
||||||
|
|
||||||
|
ltc4150_start();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
success = sht11_read_sensor(&sht11_val, HUMIDITY|TEMPERATURE);
|
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);
|
printf("%.2f;%.2f;%.2f\n", sht11_val.temperature, sht11_val.relhum, sht11_val.relhum_temp);
|
||||||
}
|
}
|
||||||
LED_RED_TOGGLE;
|
LED_RED_TOGGLE;
|
||||||
swtimer_usleep(1000 * 1000);
|
swtimer_usleep(60 * 1000*1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user