22 #include "../config/ledstrip.h"
26 static inline void ledSetXY(
struct led_config *lcfg,
int x,
int y) {
void ledstrip_genconfig(struct ledstrip *self, int ledIndex, char *ledConfigBuffer, size_t bufferSize)
struct failsafe * failsafe
Definition: ledstrip.h:47
void ledstrip_update(struct ledstrip *self)
Definition: ledstrip.c:581
void ledstrip_set_default_config(struct ledstrip *self)
uint8_t xy
Definition: ledstrip.h:121
bool ledStripInitialised
Definition: ledstrip.h:31
uint8_t ledGridHeight
Definition: ledstrip.h:35
uint8_t ledCount
Definition: ledstrip.h:42
Definition: failsafe.h:46
bool ledstrip_set_led_config(struct ledstrip *self, int ledIndex, const char *config)
Definition: ledstrip.h:120
uint8_t ledRingCount
Definition: ledstrip.h:43
uint8_t lowestXValueForEast
Definition: ledstrip.h:40
struct system_config system
Definition: config.h:99
uint8_t highestYValueForNorth
Definition: ledstrip.h:37
#define LED_X_BIT_OFFSET
Definition: ledstrip.h:37
#define LED_Y_BIT_OFFSET
Definition: ledstrip.h:38
bool ledStripEnabled
Definition: ledstrip.h:32
uint8_t lowestYValueForSouth
Definition: ledstrip.h:38
struct battery * battery
Definition: ledstrip.h:48
void applyDefaultColors(void)
uint8_t ledRingSeqLen
Definition: ledstrip.h:44
const struct config * config
Definition: ledstrip.h:50
Definition: system_calls.h:200
void ledstrip_reload_config(struct ledstrip *self)
Currently reloads config from the global store TODO: pass config to init!
Definition: ledstrip.c:109
void ledstrip_update_ring(struct ledstrip *self)
#define LED_XY_MASK
Definition: ledstrip.h:39
struct rx * rx
Definition: ledstrip.h:49
uint8_t highestXValueForWest
Definition: ledstrip.h:39
uint8_t ledGridWidth
Definition: ledstrip.h:34
void ledstrip_enable(struct ledstrip *self)
Definition: ledstrip.c:632
void ledstrip_init(struct ledstrip *self, const struct config *config, const struct system_calls *system, struct rx *rx, struct failsafe *failsafe)
void ledstrip_disable(struct ledstrip *self)
Definition: ledstrip.c:640
Definition: ledstrip.h:30
const struct system_calls * system
Definition: ledstrip.h:46