From 0331f05e9a7882c3a231e597d1869acf44f5e787 Mon Sep 17 00:00:00 2001 From: pip Date: Wed, 4 Aug 2010 17:32:42 +0000 Subject: [PATCH] Added extra LED's .. now up to 4 LED's .. (PipBee has 4 controllable LED's) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1207 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/PiOS/inc/pios_led.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flight/PiOS/inc/pios_led.h b/flight/PiOS/inc/pios_led.h index da2d1accc..77352649f 100644 --- a/flight/PiOS/inc/pios_led.h +++ b/flight/PiOS/inc/pios_led.h @@ -36,6 +36,10 @@ typedef enum {LED1 = 0} LedTypeDef; #elif (PIOS_LED_NUM == 2) typedef enum {LED1 = 0, LED2 = 1} LedTypeDef; +#elif (PIOS_LED_NUM == 3) +typedef enum {LED1 = 0, LED2 = 1, LED3 = 2} LedTypeDef; +#elif (PIOS_LED_NUM == 4) +typedef enum {LED1 = 0, LED2 = 1, LED3 = 2, LED4 = 3} LedTypeDef; #endif /* Public Functions */