diff options
| author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
| tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /drivers/avr/ws2812.h | |
| parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
| download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip | |
clang-format changes
Diffstat (limited to 'drivers/avr/ws2812.h')
| -rw-r--r-- | drivers/avr/ws2812.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/avr/ws2812.h b/drivers/avr/ws2812.h index 95f540b18..a9dd89718 100644 --- a/drivers/avr/ws2812.h +++ b/drivers/avr/ws2812.h | |||
| @@ -43,12 +43,12 @@ | |||
| 43 | * - Wait 50�s to reset the LEDs | 43 | * - Wait 50�s to reset the LEDs |
| 44 | */ | 44 | */ |
| 45 | #ifdef RGB_MATRIX_ENABLE | 45 | #ifdef RGB_MATRIX_ENABLE |
| 46 | void ws2812_setled (int index, uint8_t r, uint8_t g, uint8_t b); | 46 | void ws2812_setled(int index, uint8_t r, uint8_t g, uint8_t b); |
| 47 | void ws2812_setled_all (uint8_t r, uint8_t g, uint8_t b); | 47 | void ws2812_setled_all(uint8_t r, uint8_t g, uint8_t b); |
| 48 | #endif | 48 | #endif |
| 49 | 49 | ||
| 50 | void ws2812_setleds (LED_TYPE *ledarray, uint16_t number_of_leds); | 50 | void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); |
| 51 | void ws2812_setleds_pin (LED_TYPE *ledarray, uint16_t number_of_leds,uint8_t pinmask); | 51 | void ws2812_setleds_pin(LED_TYPE *ledarray, uint16_t number_of_leds, uint8_t pinmask); |
| 52 | void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); | 52 | void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); |
| 53 | 53 | ||
| 54 | /* | 54 | /* |
| @@ -58,18 +58,17 @@ void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); | |||
| 58 | * The length is the number of bytes to send - three per LED. | 58 | * The length is the number of bytes to send - three per LED. |
| 59 | */ | 59 | */ |
| 60 | 60 | ||
| 61 | void ws2812_sendarray (uint8_t *array,uint16_t length); | 61 | void ws2812_sendarray(uint8_t *array, uint16_t length); |
| 62 | void ws2812_sendarray_mask(uint8_t *array,uint16_t length, uint8_t pinmask); | 62 | void ws2812_sendarray_mask(uint8_t *array, uint16_t length, uint8_t pinmask); |
| 63 | |||
| 64 | 63 | ||
| 65 | /* | 64 | /* |
| 66 | * Internal defines | 65 | * Internal defines |
| 67 | */ | 66 | */ |
| 68 | #ifndef CONCAT | 67 | #ifndef CONCAT |
| 69 | #define CONCAT(a, b) a ## b | 68 | # define CONCAT(a, b) a##b |
| 70 | #endif | 69 | #endif |
| 71 | #ifndef CONCAT_EXP | 70 | #ifndef CONCAT_EXP |
| 72 | #define CONCAT_EXP(a, b) CONCAT(a, b) | 71 | # define CONCAT_EXP(a, b) CONCAT(a, b) |
| 73 | #endif | 72 | #endif |
| 74 | 73 | ||
| 75 | #endif /* LIGHT_WS2812_H_ */ | 74 | #endif /* LIGHT_WS2812_H_ */ |
