mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
move to static
This commit is contained in:
parent
02fa1fefa9
commit
2fb81fc8cd
@ -153,7 +153,7 @@ static inline void ws2812_sendarray_mask(uint8_t *data, uint16_t datlen, uint8_t
|
||||
}
|
||||
|
||||
ws2812_led_t ws2812_leds[WS2812_LED_COUNT];
|
||||
bool ws2812_dirty = false;
|
||||
static bool ws2812_dirty = false;
|
||||
|
||||
void ws2812_init(void) {
|
||||
DDRx_ADDRESS(WS2812_DI_PIN) |= pinmask(WS2812_DI_PIN);
|
||||
|
@ -18,7 +18,7 @@
|
||||
#endif
|
||||
|
||||
ws2812_led_t ws2812_leds[WS2812_LED_COUNT];
|
||||
bool ws2812_dirty = false;
|
||||
static bool ws2812_dirty = false;
|
||||
|
||||
void ws2812_init(void) {
|
||||
i2c_init();
|
||||
|
@ -77,7 +77,7 @@ void sendByte(uint8_t byte) {
|
||||
}
|
||||
|
||||
ws2812_led_t ws2812_leds[WS2812_LED_COUNT];
|
||||
bool ws2812_dirty = false;
|
||||
static bool ws2812_dirty = false;
|
||||
|
||||
void ws2812_init(void) {
|
||||
palSetLineMode(WS2812_DI_PIN, WS2812_OUTPUT_MODE);
|
||||
|
@ -291,7 +291,7 @@ typedef uint8_t ws2812_buffer_t;
|
||||
#endif
|
||||
|
||||
static ws2812_buffer_t ws2812_frame_buffer[WS2812_BIT_N + 1]; /**< Buffer for a frame */
|
||||
bool ws2812_dirty = false;
|
||||
static bool ws2812_dirty = false;
|
||||
|
||||
/* --- PUBLIC FUNCTIONS ----------------------------------------------------- */
|
||||
/*
|
||||
|
@ -165,7 +165,7 @@ static void set_led_color_rgb(ws2812_led_t color, int pos) {
|
||||
}
|
||||
|
||||
ws2812_led_t ws2812_leds[WS2812_LED_COUNT];
|
||||
bool ws2812_dirty = false;
|
||||
static bool ws2812_dirty = false;
|
||||
|
||||
void ws2812_init(void) {
|
||||
palSetLineMode(WS2812_DI_PIN, WS2812_MOSI_OUTPUT_MODE);
|
||||
|
Loading…
Reference in New Issue
Block a user