
Chapter 12 Device Logic (Pawn)
native Led_Flicker(red, green);
Enables the two-colour LED to flicker (t
on
= 94ms , t
off
= 31ms ). The two-colour LED consists of a red
and a green LED. If both LEDs are used, the two-colour LED flickers orange.
Parameter
Explanation
red
-1 : The red LED remains switched off.
0 : The red LED flickers until it is deliberately switched off.
>0 : Number of times the red LED should flicker
green
-1 : The green LED remains switched off.
0 : The green LED flickers until it is deliberately switched off.
>0 : Number of times the green LED should flicker
Explanation
Return value
l
OK, if successful
l
ERROR, if an invalid parameter was transferred
12.3.18 Solenoid switch
12.3.18.1 Constants
Selection of whether the solenoid switch is evaluated by the firmware or script
Configuration options for the Switch_Init() function
SWITCH_MODE_INTERNAL = 0,
// evaluation by the FW
SWITCH_MODE_SCRIPT
= 1,
// evaluation by the script
12.3.18.2 Callback Funktionen
public func(key);
Function to be provided by the script developer, that is called when the state of the button changes
Parameter
Explanation
key
Indicates which state change called the function
0: Button was released
1: Button was pressed
Rev. 01
157