PT-20 Programming Guide
65
LED
set_led
Purpose
:
To set the LED indicators
Syntax
:
void set_led(int led, int mode, int duration);
Example call
:
set_led(LED_RED, LED_FLASH, 30);
Includes
:
#include “SDK.h ”
Description
:
led
description
LED_GREEN
LED moving display green light.
LED_RED
LED moving display red light.
LED_ORANGE
LED moving display orange light.
mode
description
LED_OFF
off for (duration X 0.01) seconds then on
LED_ON
on for (duration X 0.01) seconds then off
LED_FLASH
flash, on then off each for (duration X 0.01)
seconds then repeat
Returns
:
none