GP8403

From: guestgood Class: herosdevices.hardware.guestgood.GP8403

Driver Quality Index: beta

Driver for the GP8403 2ch 0-10V DAC.

Bold arguments are mandatory. For more information on the listed arguments refer to the class documentation: herosdevices.hardware.guestgood.GP8403 If parameters appear in this list but not in the class definition, please recursively check the linked base classes for the definition of the parameter.

Argument

Type

Default Value

Description

bus_id

<class ‘int’>

1

I2C bus id (default 1).

device_address

<class ‘int’>

95

I2C address set (by resistors or switches) on the GP8403 (0x58 - 0x5f)

mode_5v

<class ‘bool’>

False

whether to use 0-5V range (True) or 0-10V range (False, default)

The following JSON strings can be used to start a HERO device representation of GP8403 using BOSS.

{
    "_id": "flowboxcontrol_dac",
    "classname": "herosdevices.hardware.guestgood.GP8403",
    "arguments": {
        "bus_id": 1,
        "device_address": 95,
        "mode_5v": false
    }
}

from examples/guestgood/gp8403.json

{
    "_id": "my_GP8403",
    "classname": "herosdevices.hardware.guestgood.GP8403",
    "arguments": {
        "bus_id": 1,
        "device_address": 95,
        "mode_5v": false
    }
}

generated from signature

Inheritance diagram of herosdevices.hardware.guestgood.GP8403