GPIO Data Access
Following addresses can be used to configure the data access:
Address Base | Description | Example |
---|---|---|
Global | Global addresses of the plugin | Global.0 |
GPIO | Reading an input from the I/Os | GPIO.13 |
RevPi | Reading/Writing variables for Revolution Pi | RevPi.I_1 |
Global Addresses
Global addresses of the GPIO driver:
Address | Description | Data Type |
---|---|---|
Global.0 | Available flag: 0 = Off; 1 = On | System.Boolean |
Global.1 | Sign of life. Toggles in 1Hz | System.Boolean |
GPIO Addresses
The GPIO addresses access directly the GPIO files on the host system.
Address | Description | Data Type |
---|---|---|
GPIO.{x} | Reads the x-th GPIO flag | System.Boolean |
Revolution PI Addresses
Especially for Revolution PI, the GPIO Driver plugin supports reading and writing variables defined in the Hardware Configuration.
Address | Description | Data Type |
---|---|---|
RevPi.{name} | Reads a variable {name} . The datatype is specified in the hardware configuration and dynamically read by the GPIO Driver plugin. | System.Boolean System.Byte System.UInt16 System.UInt32 System.String |
NOTE
The hardware configuration is written by the application
PiCtory
. Access the application using the web access on the RevolutionPI.
Reading RevPi
addresses are on a higher abstraction level than GPIOs:
:::caution** IMPORTANT
Use rather
RevPi
addresses instead ofGPIO
because GPIOs can change along different hardware configurations. :::