examples: c: led: Initialize LED based on index
Since the LEDs are initialized based on index, modify the USER_LED to index 0. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
committed by
Manivannan Sadhasivam
parent
6fcd882d58
commit
806c17f664
@@ -36,7 +36,7 @@
|
|||||||
#include "mraa/led.h"
|
#include "mraa/led.h"
|
||||||
|
|
||||||
/* LED name */
|
/* LED name */
|
||||||
#define USER_LED "user1"
|
#define USER_LED 0
|
||||||
|
|
||||||
/* trigger type */
|
/* trigger type */
|
||||||
#define LED_TRIGGER "heartbeat"
|
#define LED_TRIGGER "heartbeat"
|
||||||
|
|||||||
Reference in New Issue
Block a user