mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-02 13:37:54 +00:00
Merge pull request #9 from talltechdude/feat/quick-config-downlight
feat: add quick config for CCT Downlight
This commit is contained in:
@ -259,7 +259,8 @@ template_t g_templates [] = {
|
||||
{ Setup_Device_IntelligentLife_NF101A, "Intelligent Life NF101A"},
|
||||
{ Setup_Device_TuyaLEDDimmerSingleChannel, "Tuya LED Dimmer Single Channel PWM WB3S"},
|
||||
{ Setup_Device_CalexLEDDimmerFiveChannel, "Calex RGBWW LED Dimmer Five Channel PWM BK7231S"},
|
||||
{ Setup_Device_CalexPowerStrip_900018_1v1_0UK, "Calex UK power strip 900018.1 v1.0 UK"}
|
||||
{ Setup_Device_CalexPowerStrip_900018_1v1_0UK, "Calex UK power strip 900018.1 v1.0 UK"},
|
||||
{ Setup_Device_ArlecCCTDownlight, "Arlec CCT LED Downlight ALD029CHA"}
|
||||
};
|
||||
|
||||
int g_total_templates = sizeof(g_templates)/sizeof(g_templates[0]);
|
||||
|
||||
@ -149,3 +149,22 @@ void Setup_Device_CalexPowerStrip_900018_1v1_0UK() {
|
||||
PIN_SaveToFlash();
|
||||
}
|
||||
|
||||
// https://www.bunnings.com.au/arlec-grid-connect-smart-9w-cct-led-downlight_p0168694
|
||||
void Setup_Device_ArlecCCTDownlight() {
|
||||
|
||||
// WB3L
|
||||
// pins are:
|
||||
// cold white - PWM1 = P6
|
||||
// warm white - PWM2 = P24
|
||||
|
||||
PIN_ClearPins();
|
||||
|
||||
// cold white
|
||||
PIN_SetPinChannelForPinIndex(6, 1);
|
||||
PIN_SetPinRoleForPinIndex(6, IOR_PWM);
|
||||
// warm white
|
||||
PIN_SetPinChannelForPinIndex(24, 2);
|
||||
PIN_SetPinRoleForPinIndex(24, IOR_PWM);
|
||||
|
||||
PIN_SaveToFlash();
|
||||
}
|
||||
|
||||
@ -47,6 +47,7 @@ void Setup_Device_IntelligentLife_NF101A();
|
||||
void Setup_Device_TuyaLEDDimmerSingleChannel();
|
||||
void Setup_Device_CalexLEDDimmerFiveChannel();
|
||||
void Setup_Device_CalexPowerStrip_900018_1v1_0UK();
|
||||
void Setup_Device_ArlecCCTDownlight();
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user