/*
* Single WS2812 - 16M Arduino support
* License: GNU GPL v2 (see License.txt)
*/

#ifndef WS2812_H_
#define WS2812_H_

#ifndef F_CPU
#define  F_CPU 16000000UL
#endif

#include <Arduino.h>

// 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_ */