Gpio Port Configuration; Set The Direction Of A Gpio Pin; Set The Output Level Of A Gpio Pin; Toggle The Level Of A Gpio Pin - Lightware RAP-B511-EU User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.22. GPIO Port Configuration
7.22.1. Set the Direction of a GPIO Pin
Command and Response
SET·/MEDIA/GPIO/<gpio_port>.Direction=<dir>
ç
pw·/MEDIA/GPIO/<gpio_port>.Direction=<dir>
æ
Parameters
<dir>
I: input direction of the GPIO pin
O: output direction of the GPIO pin
Example
ç SET /MEDIA/GPIO/P1.Direction=I
æ pw /MEDIA/GPIO/P1.Direction=I
7.22.2. Set the Output Level of a GPIO Pin
Command and Response
SET·/MEDIA/GPIO/<gpio_port>.Output=<value>
ç
pw·/MEDIA/GPIO/<gpio_port>.Output=<value>
æ
Parameters
Identifier
Parameter description
<gpio_port>
GPIO port number
<value>
Value of the GPIO pin
Example
ç SET /MEDIA/GPIO/P1.Output=H
æ pw /MEDIA/GPIO/P1.Output=H
7.22.3. Toggle the Level of a GPIO Pin
It toggles between the high and low level of the chosen output port.
Command and Response
ç CALL·/MEDIA/GPIO/<gpio_port>:toggle()
æ pw·/MEDIA/GPIO/ <gpio_port>:toggle
Example
ç CALL /MEDIA/GPIO/P1:toggle()
æ mO /MEDIA/GPIO/P1:toggle
Parameter values
P1-P3
H: High level
L: Low level
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
RAP-B511 series – User's Manual
100

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rap-b511-kRap-b511-wRap-b511-sRap-b511-ukRap-b511-us

Table of Contents