Add pwm channel test on second button.
This commit is contained in:
		
							parent
							
								
									4d158ee4d0
								
							
						
					
					
						commit
						01f421add3
					
				
							
								
								
									
										18
									
								
								app_ui.c
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								app_ui.c
									
									
									
									
									
								
							@ -31,6 +31,7 @@
 | 
				
			|||||||
#include "zcl_include.h"
 | 
					#include "zcl_include.h"
 | 
				
			||||||
#include "sampleLight.h"
 | 
					#include "sampleLight.h"
 | 
				
			||||||
#include "app_ui.h"
 | 
					#include "app_ui.h"
 | 
				
			||||||
 | 
					#include "sampleLightCtrl.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**********************************************************************
 | 
					/**********************************************************************
 | 
				
			||||||
 * LOCAL CONSTANTS
 | 
					 * LOCAL CONSTANTS
 | 
				
			||||||
@ -117,9 +118,20 @@ void buttonShortPressed(u8 btNum)
 | 
				
			|||||||
	else if (btNum == VK_SW2)
 | 
						else if (btNum == VK_SW2)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		/* toggle local permit Joining */
 | 
							/* toggle local permit Joining */
 | 
				
			||||||
		static u8 duration = 0;
 | 
							//static u8 duration = 0;
 | 
				
			||||||
		duration = duration ? 0 : 0xff;
 | 
							//duration = duration ? 0 : 0xff;
 | 
				
			||||||
		zb_nlmePermitJoiningRequest(duration);
 | 
							//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);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user