/* * Single WS2812 - 16M Arduino support * License: GNU GPL v2 (see License.txt) * Based on https://github.com/cpldcpu/light_ws2812 * From Tim cpldcpu */ #ifndef WS2812_H_ #define WS2812_H_ #ifndef F_CPU #define F_CPU 16000000UL #endif #include // PD4 #define mask 0b00001000 #define ws2812_PORTREG PORTD #define ws2812_DDREG DDRD void ws2812_init(); void ws2812_sendarray(uint8_t *data, uint16_t datlen); #endif /* WS2812_H_ */