Enums

Details

class Colorhug.ColorSelect(value)

Bases: GLib.Enum

RED = 0
WHITE = 1
BLUE = 2
GREEN = 3
class Colorhug.DeviceMode(value)

Bases: GLib.Enum

UNKNOWN = 0
LEGACY = 1
BOOTLOADER = 2
FIRMWARE = 3
BOOTLOADER_PLUS = 4
FIRMWARE_PLUS = 5
FIRMWARE2 = 6
BOOTLOADER2 = 7
BOOTLOADER_ALS = 8
FIRMWARE_ALS = 9
class Colorhug.Error(value)

Bases: GLib.Enum

NONE = 0
UNKNOWN_CMD = 1
INVALID_VALUE = 10
UNKNOWN_CMD_FOR_BOOTLOADER = 11
NO_CALIBRATION = 12
OVERFLOW_MULTIPLY = 13
OVERFLOW_ADDITION = 14
OVERFLOW_SENSOR = 15
OVERFLOW_STACK = 16
DEVICE_DEACTIVATED = 17
INCOMPLETE_REQUEST = 18
SELF_TEST_SENSOR = 19
WRONG_UNLOCK_CODE = 2
SELF_TEST_RED = 20
SELF_TEST_GREEN = 21
SELF_TEST_BLUE = 22
SELF_TEST_COLOR_SELECT = 23
SELF_TEST_MULTIPLIER = 24
INVALID_CALIBRATION = 25
SRAM_FAILED = 26
OUT_OF_MEMORY = 27
SELF_TEST_TEMPERATURE = 28
SELF_TEST_I2C = 29
NOT_IMPLEMENTED = 3
SELF_TEST_ADC_VDD = 30
SELF_TEST_ADC_VSS = 31
SELF_TEST_ADC_VREF = 32
I2C_SLAVE_ADDRESS = 33
I2C_SLAVE_CONFIG = 34
SELF_TEST_EEPROM = 35
UNDERFLOW_SENSOR = 4
NO_SERIAL = 5
WATCHDOG = 6
INVALID_ADDRESS = 7
INVALID_LENGTH = 8
INVALID_CHECKSUM = 9
class Colorhug.FreqScale(value)

Bases: GLib.Enum

0 = 0
_0 = 0
20 = 1
_20 = 1
2 = 2
_2 = 2
100 = 3
_100 = 3
class Colorhug.MeasureMode(value)

Bases: GLib.Enum

FREQUENCY = 0
DURATION = 1
class Colorhug.SpectrumKind(value)

Bases: GLib.Enum

RAW = 0
DARK_CAL = 1
TEMP_CAL = 2
IRRADIANCE_CAL = 3
LAST = 4