mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests: driver_isl29020: vtimer -> xtimer
This commit is contained in:
parent
4a74e88ad2
commit
e4a239b78a
@ -10,7 +10,7 @@ ifneq (,$(filter iotlab-m3,$(BOARD)))
|
||||
endif
|
||||
|
||||
USEMODULE += isl29020
|
||||
USEMODULE += vtimer
|
||||
USEMODULE += xtimer
|
||||
|
||||
ifneq (,$(TEST_ISL29020_I2C))
|
||||
CFLAGS += -DTEST_ISL29020_I2C=$(TEST_ISL29020_I2C)
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "vtimer.h"
|
||||
#include "xtimer.h"
|
||||
#include "isl29020.h"
|
||||
|
||||
#define MODE ISL29020_MODE_AMBIENT
|
||||
@ -52,7 +52,7 @@ int main(void)
|
||||
while (1) {
|
||||
value = isl29020_read(&dev);
|
||||
printf("Light value: %5i LUX\n", value);
|
||||
vtimer_usleep(SLEEP);
|
||||
xtimer_usleep(SLEEP);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user