Skip to content
Snippets Groups Projects
Commit f872a7f6 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

tests/driver_io1_xplained: print light sensor values

parent 734256aa
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,13 @@ int main(void) ...@@ -78,6 +78,13 @@ int main(void)
xtimer_sleep(DELAY_1S); xtimer_sleep(DELAY_1S);
} }
uint16_t light;
io1_xplained_read_light_level(&light);
printf("Light level: %i\n"
"+-------------------------------------+\n",
light);
xtimer_sleep(DELAY_1S);
/* set led */ /* set led */
gpio_set(IO1_LED_PIN); gpio_set(IO1_LED_PIN);
xtimer_sleep(DELAY_1S); xtimer_sleep(DELAY_1S);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment