- iDigi Dia Home
- User
  - Getting Started
  - Dia Concepts
  - Devices
  - Loggers
  - Presentations
  - Services
  - Tracing
- Developer
  - Overview
  - Drivers
  - Loggers
  - Presentations
  - Services
  - Integrating Application
  - Tracing Manager
  - Debugging
  - Specific Considerations
  - API Reference

- Email
- Phone
- Contact us:

### Navigation

- index
- next |
- previous |
- iDigi Dia |
- User Documentation »
- Device Drivers »

# ConnectCore Wi9P 9215 GPIO

## Overview

Digi ConnectCore Wi9P9215 module GPIO driver collects GPIO values into channels. This driver manages 31 GPIOs (from 0 to 30), which represents several CCWi9P9215 module GPIOs.

Following table shows the currently accessible processor GPIOs with their assigned Python GPIO number to access them:

Python GPIO | Processor GPIO | Dev Board Connector
--- | --- | ---
0 | 67 | X21 C9
1 | 68 | X21 D9
2 | 69 | X20 A10
3 | 70 | X20 B10
4 | 71 | X21 C10
5 | 72 | X21 D10
6 | 73 | X20 A11
7 | 75 | X21 C11
8 | 76 | X21 D11
9 | 77 | X20 A12
10 | 78 | X20 B12
11 | 79 | X21 C12
12 | 80 | X21 D12
13 | 81 | X20 A13
14 | 82 | X20 B13
15 | 83 | X21 C13
16 | 84 | X21 D13
17 | 85 | X20 A14
18 | 86 | X20 B14
19 | 87 | X21 C14
20 | 93 | X21 D14
21 | 94 | X20 A15
22 | 95 | X20 B15
23 | 96 | X21 C15
24 | 97 | X21 D15
25 | 98 | X20 A16
26 | 99 | X20 B16
27 | 100 | X21 C16
28 | 101 | X21 D16
29 | 102 | X20 A17
30 | 103 | X20 B18

Note

Notice that only those GPIOs configured as inputs will be refreshed. If you want to see the status of a GPIO, you must include it with the `input_gpios` array setting.

## Configuration

A configuration example of this device could be something like this:

    - name: 9215gpio
      driver: devices.ccwi9p9215_gpio:ModuleGPIOs
      settings:
          input_gpios: [0,1,2,3,10,11,15]
          output_gpios: [16,17,18,20,22]
          update_rate: 0.1

In this example, Python GPIOs 0, 1, 2, 3, 10, 11 and 15 are configured as inputs (read) and will be refreshed each `update_rate` period (100 milliseconds). On the other hand we have the GPIOs configured as outputs (write), they are the Python GPIOs 16, 17, 18, 20 and 22.

### Settings

input_gpios (required)
  The list of gpios (Python GPIOs) that will be refreshed with a `update_rate` frequency.
output_gpios (required)
  List with the GPIOs configured as outputs. Once Dia is running, you will be able to set them to True/False through their channels.
update_rate (optional, default: 0.1)
  Number of seconds between each refresh period.

## Channels

GPIO_0 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 0.
GPIO_1 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 1.
GPIO_2 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 2.
GPIO_3 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 3.
GPIO_4 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 4.
GPIO_5 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 5.
GPIO_6 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 6.
GPIO_7 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 7.
GPIO_8 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 8.
GPIO_9 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 9.
GPIO_10 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 10.
GPIO_11 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 11.
GPIO_12 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 12.
GPIO_13 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 13.
GPIO_14 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 14.
GPIO_15 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 15.
GPIO_16 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 16.
GPIO_17 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 17.
GPIO_18 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 18.
GPIO_19 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 19.
GPIO_20 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 20.
GPIO_21 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 21.
GPIO_22 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 22.
GPIO_23 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 23.
GPIO_24 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 24.
GPIO_25 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 25.
GPIO_26 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 26.
GPIO_27 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 27.
GPIO_28 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 28.
GPIO_29 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 29.
GPIO_30 (Get/Set, type: bool)
  Boolean (True/False) status of the CCWi9P9215 Python GPIO 30.

### Navigation

- index
- next |
- previous |
- iDigi Dia |
- User Documentation »
- Device Drivers »