LED stripe – Code – LED_Handler.h

/*
 * LED_Handler.h
 *
 * Created: 15-02-17 20:04:32
 *  Author: raspi.th.in@gmail.com
 */ 


#ifndef LED_HANDLER_H_
#define LED_HANDLER_H_
//#include "Bresenham.h"
#include "LED_define.h"


typedef enum
{
	RUNNING,
	STOPPED,
}
Gradient_status;


typedef enum
{
	NO_LOG,
	LOG
	}
LED_LOG;
void set_LED_FB(uint8_t i,LED_color color,LED_LOG log);
LED_color get_LED_FB(uint8_t i);
void init_LED_FB();
void LED_Set_gradient(Color_gradient LED_gradient,uint8_t LED_Pos);
volatile uint8_t LED_Done;//1 if no more led to update
volatile uint8_t system_timer;//system timer in units of 100ms
#endif /* LED_HANDLER_H_ */