From 01f421add39e173329e7d18b4fe8532a3cf2b7bf Mon Sep 17 00:00:00 2001 From: MartB Date: Mon, 4 Apr 2022 03:04:58 +0200 Subject: [PATCH] Add pwm channel test on second button. --- app_ui.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/app_ui.c b/app_ui.c index 9245299..07cfc73 100644 --- a/app_ui.c +++ b/app_ui.c @@ -31,6 +31,7 @@ #include "zcl_include.h" #include "sampleLight.h" #include "app_ui.h" +#include "sampleLightCtrl.h" /********************************************************************** * LOCAL CONSTANTS @@ -117,9 +118,20 @@ void buttonShortPressed(u8 btNum) else if (btNum == VK_SW2) { /* toggle local permit Joining */ - static u8 duration = 0; - duration = duration ? 0 : 0xff; - zb_nlmePermitJoiningRequest(duration); + //static u8 duration = 0; + //duration = duration ? 0 : 0xff; + //zb_nlmePermitJoiningRequest(duration); + + // todo remove test for color order + sampleLight_onoff(ZCL_ONOFF_STATUS_OFF); + hwLight_colorUpdate_RGB(255,0,0); + WaitMs(250); + hwLight_colorUpdate_RGB(0,255,0); + WaitMs(250); + hwLight_colorUpdate_RGB(0,0,255); + WaitMs(250); + sampleLight_onoff(ZCL_ONOFF_STATUS_ON); + } }