aboutsummaryrefslogtreecommitdiff
path: root/drivers/avr/ws2812.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/avr/ws2812.h')
-rw-r--r--drivers/avr/ws2812.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/drivers/avr/ws2812.h b/drivers/avr/ws2812.h
index a9dd89718..9652b94bb 100644
--- a/drivers/avr/ws2812.h
+++ b/drivers/avr/ws2812.h
@@ -20,13 +20,7 @@
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */ 21 */
22 22
23#ifndef LIGHT_WS2812_H_ 23#pragma once
24#define LIGHT_WS2812_H_
25
26#include <avr/io.h>
27#include <avr/interrupt.h>
28//#include "ws2812_config.h"
29//#include "i2cmaster.h"
30 24
31#include "quantum/color.h" 25#include "quantum/color.h"
32 26
@@ -42,33 +36,6 @@
42 * - Send out the LED data 36 * - Send out the LED data
43 * - Wait 50�s to reset the LEDs 37 * - Wait 50�s to reset the LEDs
44 */ 38 */
45#ifdef RGB_MATRIX_ENABLE
46void ws2812_setled(int index, uint8_t r, uint8_t g, uint8_t b);
47void ws2812_setled_all(uint8_t r, uint8_t g, uint8_t b);
48#endif
49
50void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); 39void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
51void ws2812_setleds_pin(LED_TYPE *ledarray, uint16_t number_of_leds, uint8_t pinmask); 40void ws2812_setleds_pin(LED_TYPE *ledarray, uint16_t number_of_leds, uint8_t pinmask);
52void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); 41void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);
53
54/*
55 * Old interface / Internal functions
56 *
57 * The functions take a byte-array and send to the data output as WS2812 bitstream.
58 * The length is the number of bytes to send - three per LED.
59 */
60
61void ws2812_sendarray(uint8_t *array, uint16_t length);
62void ws2812_sendarray_mask(uint8_t *array, uint16_t length, uint8_t pinmask);
63
64/*
65 * Internal defines
66 */
67#ifndef CONCAT
68# define CONCAT(a, b) a##b
69#endif
70#ifndef CONCAT_EXP
71# define CONCAT_EXP(a, b) CONCAT(a, b)
72#endif
73
74#endif /* LIGHT_WS2812_H_ */