DIOZero
DIOZero
Implementation of the library DIOZero to give an access to analog in/outputs. This is the hardware module that give support to ADC Datastreams.
To access source code click here.
Dependencies
This module requires the following modules:
- Commons: Provide the ADC APIs, exceptions and types and the basic APIs to register the service.
Configuration
To configure I2C Hardware module, a file named es.amplia.oda.hardware.diozero.cfg must be created with the next parameters for each input channel that you want to register:
- index: Required parameter. Index of the channel.
- deviceType: "" (void String) by default. Type of this pin. adc.ADCChannel for specify an analog channel.
- name: Required parameter. Unique name for the channel.
- lowMode: Required parameter. Specify if lowMode is enabled.
- path: Required parameter. Path to the local directory that contains the value of this pin.
- device: Required parameter. Name of the device that handles this pin (OWASYS, FX30 or anyone else).
es.amplia.oda.hardware.diozero.cfg will have a similar format to:
1=deviceType:adc.ADCChannel,name:light,lowMode:false,min:0,max:10
4=deviceType:adc.ADCChannel,name:temperature,lowMode:false,min:-10,max:50