Migrate to LED HAL (Zoul examples)
This commit is contained in:
parent
ad32bdd070
commit
40ca7d0443
@ -136,7 +136,7 @@ PROCESS_THREAD(test_remote_pm, ev, data)
|
||||
printf("PM: Soft shutdown, timeout set to %lu\n", pm_get_timeout());
|
||||
|
||||
leds_off(LEDS_ALL);
|
||||
leds_on(LEDS_PURPLE);
|
||||
leds_on(LEDS_RED);
|
||||
|
||||
/* Wait just enough to be able to check the LED result */
|
||||
etimer_set(&et, CLOCK_SECOND * 3);
|
||||
|
@ -65,7 +65,7 @@ gyro_interrupt_callback(uint8_t status)
|
||||
* returns the outcome of the read operation, check to validate if the
|
||||
* data is valid to read
|
||||
*/
|
||||
leds_toggle(LEDS_PURPLE);
|
||||
leds_toggle(LEDS_RED);
|
||||
|
||||
printf("Gyro: X_axis %u, Y_axis %u, Z_axis %u\n", gyro_values.x,
|
||||
gyro_values.y,
|
||||
|
@ -63,7 +63,7 @@ void
|
||||
light_interrupt_callback(uint8_t value)
|
||||
{
|
||||
printf("* Light sensor interrupt!\n");
|
||||
leds_toggle(LEDS_PURPLE);
|
||||
leds_toggle(LEDS_RED);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS_THREAD(remote_tsl256x_process, ev, data)
|
||||
|
Loading…
Reference in New Issue
Block a user