
Chapter 12 Device Logic (Pawn)
12.3.17.2 Functions
native Led_Init(mode);
Initialises the two-colour LED
Parameter
Explanation
mode
Selection of whether the two-colour LED is controlled by the firmware or script
LED_MODE_
INTERNAL :
The two-colour LED is used to indicate the operating
state (see "Two-colour LED" on page 71).
LED_MODE_SCRIPT : The state of the two-colour LED can be controlled by
the "Led_On", "Led_Off", "Led_Blink" and "Led_Flash"
script functions.
Explanation
Return value
l
OK, if successful
l
ERROR, if an invalid parameter was transferred
native Led_Close();
Deactivates the two-colour LED. The two-colour LED cannot be controlled by the firmware or the script
functions.
Explanation
Return value
OK, if successful
native Led_On(bool:red, bool:green);
The two-colour LED consists of a red and a green LED that can be switched on separately by this
function. If both LEDs are switched on simultaneously, the two-colour LED lights up orange.
Parameter
Explanation
red
true: The red LED is switched on.
green
true: The green LED is switched on.
Explanation
Return value
l
OK, if successful
l
ERROR, if an invalid parameter was transferred
Rev. 01
155