Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
CK1 SDK Programmer’s Reference Manual 
41 
 
 
Turn on the light 
 
 
Turn on the light and turn off after Z seconds 
 
 
Turn off the light and turn on after Z seconds 
 
Z 
Indicates the number of seconds to wait when you set Y to 
either 2 or 3 
Example Code 
///////////////////////////////////////////////////////////////// 
/***************************************************************** 
 * ------- 
 * Purpose 
 * ------- 
 * LED functional sample code is based on LED library. 
 * User easily know how the library functions control LED. 
 * 
 * ---------------------------- 
 * Behavior of this sample code 
 * ---------------------------- 
 * Every test item controls action of LED according to respective function of 
library. 
 * 
 * The "LED Delay Turn On/Off" testing behavior as following:      
 * "LED Delay Turn On Test" anyway turn off LED first and then turn on LED 
delay. 
 * "LED Delay Turn Off Test" anyway turn on LED first and then turn off LED 
delay. 
 * You need to show current setting (Optional Item is 's') after several 
time(greater than your setting delayed time) 
 * when you test "LED Delay Turn On/Off" or else you will get wrong setting 
value. 
 * Example, 
 * (Step 1) 
 *  
your Option: 7 
 *  
Please Enter LED Light Number(Red:0, Green:1 and Blue:2) 
 *  
 *  
Please Enter Delay Time 
 *  
 *  
***R_LED turn off first and turn on 3 seconds delay 
 *  
*** Wait 3 seconds or more 
 * (Step 2) 
 * 
your Option: s      
 *      *** You will get correct setting value 
 * 
 * ----------------------- 
 * How to Use this Program 
 * ----------------------- 
 * According to "LED Functional Test Menu"  
 * 
***************************************************************************/ 
 
///////////////////////////////////////////////////////////////// 
 
 
#include <stdio.h> 
#include <eslib_led.h>