1
0
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:
Kaspar Schleiser 2015-09-03 21:36:13 +02:00
parent 4a74e88ad2
commit e4a239b78a
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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;