herosdevices.hardware.guestgood =============================== .. py:module:: herosdevices.hardware.guestgood .. autoapi-nested-parse:: Drivers for guestgood ICs. Module Contents --------------- .. py:data:: CMD_SET_MODE :value: 1 .. py:data:: CMD_SET_VOUT0 :value: 2 .. py:data:: CMD_SET_VOUT1 :value: 4 .. py:class:: GP8403(bus_id: int = 1, device_address: int = 95, mode_5v: bool = False) Bases: :py:obj:`herosdevices.core.templates.i2c.I2CDeviceTemplate`, :py:obj:`herosdevices.interfaces.atomiq.DAC` Driver for the GP8403 2ch 0-10V DAC. .. py:attribute:: device_address :value: 95 .. py:attribute:: mode_5v :value: False .. py:attribute:: vmax :value: 5 .. py:property:: min_voltage :type: float Specify the minimum voltage read-only. .. py:property:: max_voltage :type: float Specify the maximum voltage read-only. .. py:method:: set_channel_voltage(channel: int, voltage: float) -> None Set the DAC output voltage. :param channel: number of the channel for which to set the voltage (0 or 1) :param voltage: voltage to set in the range 0-10V (or 0-5V if mode_5v=True) .. py:attribute:: connection