#ifndef _WS2812_H
#define _WS2812_H

#define WSGPIO 0

#include "c_types.h"
#include "user_interface.h"
#include "ets_sys.h"
#include "gpio.h"

/*------------------------------------------------------------------------------*/
// Configuration Parameters 
/*------------------------------------------------------------------------------*/
#define WS2811_COMPATIBLE 	0 	// set to make driver backwards compatable. 
/*------------------------------------------------------------------------------*/
//You will have to 	os_intr_lock();  	os_intr_unlock();


/* 
	NOTE: The first byte stored is the last byte sent. 50us is required for sent data to latch to all LEDS
	Data is stored in the following format: 
	[ byte1: green, byte2: red, byte3: blue]
	NOTE: Every function except ws2812_outBuffer is stored in Flash. 
*/
/*------------------------------------------------------------------------------*/
// Function Prototypes
/*------------------------------------------------------------------------------*/
void ws2812_outBuffer( uint8_t * buffer, uint16_t length );
// void ws2812_green(void); 
// void ws2812_red(void); 
// void ws2812_blue(void); 
// void ws2812_clear(void);
/*------------------------------------------------------------------------------*/
#endif