herosdevices.hardware.guestgood

Drivers for guestgood ICs.

Module Contents

herosdevices.hardware.guestgood.CMD_SET_MODE = 1
herosdevices.hardware.guestgood.CMD_SET_VOUT0 = 2
herosdevices.hardware.guestgood.CMD_SET_VOUT1 = 4
class herosdevices.hardware.guestgood.GP8403(bus_id: int = 1, device_address: int = 95, mode_5v: bool = False)[source]

Bases: herosdevices.core.templates.i2c.I2CDeviceTemplate, herosdevices.interfaces.atomiq.DAC

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

device_address = 95
mode_5v = False
vmax = 5
property min_voltage: float

Specify the minimum voltage read-only.

property max_voltage: float

Specify the maximum voltage read-only.

set_channel_voltage(channel: int, voltage: float) → None[source]

Set the DAC output voltage.

Parameters:
  • channel – number of the channel for which to set the voltage (0 or 1)

  • voltage – voltage to set in the range 0-10V (or 0-5V if mode_5v=True)

connection