/*
 * $Id: rgbled.h 464 2019-08-01 02:15:54Z true $
 * begin 20190525 true
 */

#ifndef INC_LED_RGBLED_H_
#define INC_LED_RGBLED_H_



#include "disp/hsv2rgb.h"



#define RGBLED_PWM1_PIN		P1_B6
#define RGBLED_PWM2_PIN		P1_B7
#define RGBLED_PWM3_PIN		P2_B0
#define RGBLED_PWM4_PIN		P2_B1

#define RGBLED_COUNT		4



typedef struct LedProgram {
	char *name;
	void (*progfn)(uint8_t *);
	void (*editfn)(uint8_t);
} LedProgram;



extern color_hsv idata hsv[RGBLED_COUNT];
extern LedProgram code ledprog[15];



void rgbled_update(uint8_t idx);



#endif // INC_LED_RGBLED_H
