Files
Last update 1 year 3 months
by
Darren Winter
FilesFirmwaremain | |
---|---|
.. | |
CMakeLists.txt | |
LEDLightDriver.h | |
LED_Light_Driver.c | |
main.c |
LEDLightDriver.h#ifndef LEDLightDriver_H_ #define LEDLightDriver_H_ #include "driver/gpio.h" #include "driver/ledc.h" //Declared functions void RED_BRIGHTNESS_25(); void GREEN_BRIGHTNESS_25(); void BLUE_BRIGHTNESS_25(); void WHITE_BRIGHTNESS_25(); void WARM_WHITE_BRIGHTNESS_25(); void RED_BRIGHTNESS_50(); void GREEN_BRIGHTNESS_50(); void BLUE_BRIGHTNESS_50(); void WHITE_BRIGHTNESS_50(); void WARM_WHITE_BRIGHTNESS_50(); void RED_BRIGHTNESS_75(); void GREEN_BRIGHTNESS_75(); void BLUE_BRIGHTNESS_75(); void WHITE_BRIGHTNESS_75(); void WARM_WHITE_BRIGHTNESS_75(); void RED_BRIGHTNESS_100(); void GREEN_BRIGHTNESS_100(); void BLUE_BRIGHTNESS_100(); void WHITE_BRIGHTNESS_100(); void WARM_WHITE_BRIGHTNESS_100(); void LEDC_Config_Set_RGBW(); void LEDC_Config_Set_Warm_LED(); void Brightness_Level_Increase(); void Brightness_Level_Increase_Warm_LED(); void Stop_RGBW_LEDs(); void Stop_Warm_LEDs(); //RGBW D1 #define R_D1 GPIO_NUM_2 #define G_D1 GPIO_NUM_4 #define B_D1 GPIO_NUM_3 #define W_D1 GPIO_NUM_5 //RGBW D2 #define R_D2 GPIO_NUM_6 #define G_D2 GPIO_NUM_8 #define B_D2 GPIO_NUM_7 #define W_D2 GPIO_NUM_9 //RGBW D3 #define R_D3 GPIO_NUM_10 #define G_D3 GPIO_NUM_12 #define B_D3 GPIO_NUM_11 #define W_D3 GPIO_NUM_13 //Warm light LEDs #define D4_SW GPIO_NUM_45 #define D5_SW GPIO_NUM_46 #define D6_SW GPIO_NUM_47 #endif /* LEDLightDriver.H */