
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
Содержание myDatalogEASY IoTmini
Страница 2: ......
Страница 11: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 01 11 ...
Страница 12: ......
Страница 34: ......
Страница 66: ......
Страница 78: ......
Страница 82: ......
Страница 186: ......
Страница 194: ......
Страница 196: ......
Страница 202: ......
Страница 205: ...Chapter 19 Document history Chapter 19 Document history Rev Date Changes 01 28 08 2020 First version Rev 01 205 ...
Страница 206: ......
Страница 208: ......