Private
Public Access
2
0

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:
Manivannan Sadhasivam
2018-08-30 15:24:44 +05:30
committed by Manivannan Sadhasivam
parent 6fcd882d58
commit 806c17f664

View File

@@ -36,7 +36,7 @@
#include "mraa/led.h"
/* LED name */
#define USER_LED "user1"
#define USER_LED 0
/* trigger type */
#define LED_TRIGGER "heartbeat"