1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

LedStrip - Add support for solid colors. Update default LED strip

configuration to include a ring.

Also includes documentation updates that were not updated when ring
support was added.
This commit is contained in:
Dominic Clifton 2015-01-25 16:03:13 +01:00
parent 6048a2ec57
commit 52f082fcd7
4 changed files with 258 additions and 131 deletions

View file

@ -48,6 +48,7 @@ typedef enum {
LED_FUNCTION_ARM_STATE = (1 << 9),
LED_FUNCTION_THROTTLE = (1 << 10),
LED_FUNCTION_THRUST_RING = (1 << 11),
LED_FUNCTION_COLOR = (1 << 12),
} ledFlag_e;
#define LED_DIRECTION_BIT_OFFSET 0
@ -66,7 +67,8 @@ typedef enum {
LED_FUNCTION_FLIGHT_MODE | \
LED_FUNCTION_ARM_STATE | \
LED_FUNCTION_THROTTLE | \
LED_FUNCTION_THRUST_RING \
LED_FUNCTION_THRUST_RING | \
LED_FUNCTION_COLOR \
)
@ -77,6 +79,7 @@ typedef struct ledConfig_s {
} ledConfig_t;
extern uint8_t ledCount;
extern uint8_t ledsInRingCount;