Module Import alias Import alias Import alias Import alias Expr Str ClassDef bases body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Dict Str Str Str Str Str Num Num Num Num Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore BinOpBitOr NameLoad Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num body Assign NameStore Num orelse Assign NameStore Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assert BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num Str If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad BinOpBitOr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str Assert BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num Str Assert BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num CompareEq NameLoad Num Str If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad BinOpBitOr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return CompareEq BinOpBitAnd SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return TupleLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num Num BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num Num BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num Num BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num BinOpMult Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpDiv NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Assign NameStore BinOpDiv NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Return ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpPow BinOpSub SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Num Num BinOpPow BinOpSub SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Num Num If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Return NameLoad decorator_list decorator_list
N/A N/A smbus N/A time N/A math N/A RPi.GPIO N/A 
## License

The MIT License (MIT)
Copyright (c) 2016 Frederic Aguiard

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 GroveI2CColorSensor N/A N/A N/A  Provides access to the Grove I2C color sensor from Seeedstudio.

    This library supports 2 of the operating modes of the sensor:
    - Continuous, back-to-back color measures ('integrations') of pre-defined durations
    - Single measure of arbitrary duration
    The other sensor operating modes (using an external SYNC pin, interrupts...) which are not supported by this
    library.

    Usage:
    1. Use either use_continuous_integration() or use_manual_integration() to select operating mode
    2. If necessary, adjust gain and prescaler to obtain a color measure of sufficient precision without saturating the
       sensor.
    3. Start integration using start_integration()
    4. In manual integration mode: use stop_integration() after the desired duration
    5. Use one of the read functions to get the measured color value

    Reference documentation:
    - Seeedstudio wiki: http://www.seeedstudio.com/wiki/index.php?title=Twig_-_I2C_Color_Sensor_v0.9b
    - TCS3414-A Datasheet: http://www.seeedstudio.com/wiki/File:TCS3404_TCS3414-A.pdf
     N/A COLOR_TABLE N/A Red Green Blue Yellow Magenta Cyan Deep pink Orange Saddle brown Grey / White Black N/A x y r g b 0.64 0.33 255 0 0 N/A x y r g b 0.3 0.6 0 255 0 N/A x y r g b 0.15 0.06 0 0 255 N/A x y r g b 0.419 0.505 255 255 0 N/A x y r g b 0.321 0.154 255 0 255 N/A x y r g b 0.225 0.329 0 255 255 N/A x y r g b 0.466 0.238 255 20 147 N/A x y r g b 0.5 0.441 255 165 0 N/A x y r g b 0.526 0.399 139 69 19 N/A x y r g b 0.313 0.329 255 255 255 N/A x y r g b 0 0 0 0 0 N/A _I2C_SENSOR_ADDRESS 57 N/A _REGISTER_COMMAND 128 N/A _REGISTER_CONTROL N/A _REGISTER_COMMAND 0 N/A _REGISTER_TIMING N/A _REGISTER_COMMAND 1 N/A _REGISTER_INTERRUPT_CONTROL N/A _REGISTER_COMMAND 2 N/A _REGISTER_INT_SOURCE N/A _REGISTER_COMMAND 3 N/A _REGISTER_ID N/A _REGISTER_COMMAND 4 N/A _REGISTER_GAIN N/A _REGISTER_COMMAND 7 N/A _REGISTER_INTERRUPT_LOW_THRESH_LOW_BYTE N/A _REGISTER_COMMAND 8 N/A _REGISTER_INTERRUPT_LOW_THRESH_HIGH_BYTE N/A _REGISTER_COMMAND 9 N/A _REGISTER_INTERRUPT_HIGH_THRESH_LOW_BYTE N/A _REGISTER_COMMAND 10 N/A _REGISTER_INTERRUPT_HIGH_THRESH_HIGH_BYTE N/A _REGISTER_COMMAND 11 N/A _REGISTER_DATA_GREEN_LOW N/A _REGISTER_COMMAND 16 N/A _REGISTER_DATA_GREEN_HIGH N/A _REGISTER_COMMAND 17 N/A _REGISTER_DATA_RED_LOW N/A _REGISTER_COMMAND 18 N/A _REGISTER_DATA_RED_HIGH N/A _REGISTER_COMMAND 19 N/A _REGISTER_DATA_BLUE_LOW N/A _REGISTER_COMMAND 20 N/A _REGISTER_DATA_BLUE_HIGH N/A _REGISTER_COMMAND 21 N/A _REGISTER_DATA_CLEAR_LOW N/A _REGISTER_COMMAND 22 N/A _REGISTER_DATA_CLEAR_HIGH N/A _REGISTER_COMMAND 23 N/A _REGISTER_INTERRUPT_CLEAR N/A _REGISTER_COMMAND 96 N/A _CONTROL_ADC_IS_VALID 16 N/A _CONTROL_ADC_ENABLE 2 N/A _CONTROL_ADC_DISABLE 0 N/A _CONTROL_ADC_POWER_ON 1 N/A _CONTROL_ADC_POWER_OFF 0 N/A _TIMING_SYNC_EDGE 64 N/A _TIMING_INTEGRATION_MODE_CONTINUOUS 0 N/A _TIMING_INTEGRATION_MODE_MANUAL 16 N/A _TIMING_INTEGRATION_MODE_SYNC_SINGLE_PULSE 32 N/A _TIMING_INTEGRATION_MODE_SYNC_MULTIPLE_PULSE 48 N/A _TIMING_PARAM_INTEGRATION_TIME_12MS 0 N/A _TIMING_PARAM_INTEGRATION_TIME_100MS 1 N/A _TIMING_PARAM_INTEGRATION_TIME_400MS 2 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_1 0 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_2 1 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_4 2 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_8 3 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_16 4 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_32 5 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_64 6 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_128 7 N/A _TIMING_PARAM_SYNC_PULSE_COUNT_256 8 N/A _INTERRUPT_CONTROL_MODE_DISABLE 0 N/A _INTERRUPT_CONTROL_MODE_LEVEL 16 N/A _INTERRUPT_CONTROL_MODE_SMB_ALERT 32 N/A _INTERRUPT_CONTROL_PERSIST_EVERY_CYCLE 0 N/A _INTERRUPT_CONTROL_PERSIST_OUTSIDE_RANGE_ONCE 1 N/A _INTERRUPT_CONTROL_PERSIST_OUTSIDE_RANGE_100MS 2 N/A _INTERRUPT_CONTROL_PERSIST_OUTSIDE_RANGE_1000MS 3 N/A _INTERRUPT_SOURCE_GREEN 0 N/A _INTERRUPT_SOURCE_RED 1 N/A _INTERRUPT_SOURCE_BLUE 16 N/A _INTERRUPT_SOURCE_CLEAR 3 N/A _GAIN_1X 0 N/A _GAIN_4X 16 N/A _GAIN_16X 32 N/A _GAIN_64X 48 N/A _PRESCALER_1 0 N/A _PRESCALER_2 1 N/A _PRESCALER_4 2 N/A _PRESCALER_8 3 N/A _PRESCALER_16 4 N/A _PRESCALER_32 5 N/A _PRESCALER_64 6 N/A _SLEEP_VALUE 0.05 __init__ N/A N/A self bus_number N/A None N/A N/A Initialize i2c communication with the sensor and sets default parameters.

        Default parameters: continuous integration (not started) with 12ms cycles, gain 1x, pre-scale 1.

        :param bus_number: the i2c bus number (usually 0 or 1, depending on the hardware). Use the i2cdetect command
        line tool to identify the right bus. If set to None, will use the Raspberry Pi revision number to guess which
        bus to use.
         N/A N/A bus_number None N/A N/A board_revision N/A N/A RPi GPIO RPI_REVISION N/A N/A N/A board_revision 2 N/A board_revision 3 N/A N/A bus_number 1 N/A N/A bus_number 0 N/A N/A self bus N/A N/A smbus SMBus bus_number N/A N/A N/A self use_continuous_integration N/A N/A N/A self set_gain_and_prescaler 1 1 N/A use_continuous_integration N/A N/A self integration_time_in_ms N/A 12 N/A N/A Configure the sensor to perform continuous, back-to-back integrations of pre-defined duration.
        Continuous integration will begin after calling start_integration() and will stop after calling
        stop_integration().

        :param integration_time_in_ms: supported values in ms are 12, 100 and 400.
         N/A N/A N/A integration_time_in_ms 12 N/A integration_time_in_ms 100 N/A integration_time_in_ms 400 Continuous integration supports only 12ms, 100ms or 400ms integration durations N/A N/A integration_time_in_ms 12 N/A N/A integration_time_reg N/A self _TIMING_PARAM_INTEGRATION_TIME_12MS N/A N/A N/A integration_time_in_ms 100 N/A N/A integration_time_reg N/A self _TIMING_PARAM_INTEGRATION_TIME_100MS N/A N/A N/A integration_time_in_ms 400 N/A N/A integration_time_reg N/A self _TIMING_PARAM_INTEGRATION_TIME_400MS N/A N/A integration_time_reg N/A self _TIMING_PARAM_INTEGRATION_TIME_12MS N/A N/A N/A N/A self bus write_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_TIMING N/A N/A N/A self _TIMING_INTEGRATION_MODE_CONTINUOUS integration_time_reg N/A N/A N/A time sleep N/A self _SLEEP_VALUE N/A use_manual_integration N/A N/A self N/A N/A N/A Configure the sensor to perform a single integration manually started and stopped.

        Manual integration will begin after calling start_integration(), and will stop after calling stop_integration().
         N/A N/A N/A N/A self bus write_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_TIMING N/A N/A self _TIMING_INTEGRATION_MODE_MANUAL N/A N/A N/A time sleep N/A self _SLEEP_VALUE N/A set_gain_and_prescaler N/A N/A self gain_multiplier prescaler_divider N/A 1 1 N/A N/A Configure the sensor gain and prescaler.

        :param gain_multiplier: Gain sets the sensibility of the sensor, effectively extending the dynamic range of the
        sensor but eventually inducing saturation. Supported values are 1, 4, 16 and 64.

        :param prescaler_divider: Prescaler scales the values by dividing them before storage in the output registers,
        hence reducing saturation at the cost of reducing measurement precision. Supported prescaler dividers are 1, 2,
        4, 8, 16, 32 and 64.
         N/A N/A N/A gain_multiplier 1 N/A gain_multiplier 4 N/A gain_multiplier 16 N/A gain_multiplier 64 Supported gain multipliers: 1, 4, 16 and 64 N/A N/A N/A prescaler_divider 1 N/A prescaler_divider 2 N/A prescaler_divider 4 N/A prescaler_divider 8 N/A prescaler_divider 16 N/A prescaler_divider 32 N/A prescaler_divider 64 Supported prescaler dividers: 1, 2, 4, 8, 16, 32 and 64 N/A N/A gain_multiplier 1 N/A N/A gain_reg N/A self _GAIN_1X N/A N/A N/A gain_multiplier 4 N/A N/A gain_reg N/A self _GAIN_4X N/A N/A N/A gain_multiplier 16 N/A N/A gain_reg N/A self _GAIN_16X N/A N/A N/A gain_multiplier 64 N/A N/A gain_reg N/A self _GAIN_64X N/A N/A gain_reg N/A self _GAIN_1X N/A N/A prescaler_divider 1 N/A N/A prescaler_reg N/A self _PRESCALER_1 N/A N/A N/A prescaler_divider 2 N/A N/A prescaler_reg N/A self _PRESCALER_2 N/A N/A N/A prescaler_divider 4 N/A N/A prescaler_reg N/A self _PRESCALER_4 N/A N/A N/A prescaler_divider 8 N/A N/A prescaler_reg N/A self _PRESCALER_8 N/A N/A N/A prescaler_divider 16 N/A N/A prescaler_reg N/A self _PRESCALER_16 N/A N/A N/A prescaler_divider 32 N/A N/A prescaler_reg N/A self _PRESCALER_32 N/A N/A N/A prescaler_divider 64 N/A N/A prescaler_reg N/A self _PRESCALER_64 N/A N/A prescaler_reg N/A self _PRESCALER_1 N/A N/A N/A N/A self bus write_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_GAIN N/A N/A gain_reg prescaler_reg N/A N/A N/A time sleep N/A self _SLEEP_VALUE N/A start_integration N/A N/A self N/A N/A N/A Start the integration.
         N/A N/A N/A N/A self bus write_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_CONTROL N/A N/A N/A self _CONTROL_ADC_ENABLE N/A self _CONTROL_ADC_POWER_ON N/A stop_integration N/A N/A self N/A N/A N/A Stop the integration.
         N/A N/A N/A N/A self bus write_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_CONTROL N/A N/A N/A self _CONTROL_ADC_DISABLE N/A self _CONTROL_ADC_POWER_ON N/A is_integration_complete N/A N/A self N/A N/A N/A  Checks if an integration has been successfully completed and color data is ready to be read.

        :return: True if integration is completed.
         N/A integration_status N/A N/A N/A self bus read_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_CONTROL 1 N/A N/A N/A N/A integration_status N/A 0 N/A self _CONTROL_ADC_IS_VALID N/A self _CONTROL_ADC_IS_VALID N/A read_rgbc_word N/A N/A self N/A N/A N/A  Reads the measured color, split over 4 channels: red, green, blue, clear.
        Each value is provided as a word.

        :return: a (r,g,b,c) tuple of the 4 word values measured by the red/green/blue/clear channels
         N/A raw_color N/A N/A N/A self bus read_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_DATA_GREEN_LOW 8 N/A N/A N/A N/A raw_color N/A 2 N/A N/A raw_color N/A 3 256 N/A N/A raw_color N/A 0 N/A N/A raw_color N/A 1 256 N/A N/A raw_color N/A 4 N/A N/A raw_color N/A 5 256 N/A N/A raw_color N/A 6 N/A N/A raw_color N/A 7 256 N/A read_rgbc N/A N/A self N/A N/A N/A  Reads the measured color, split over 4 channels: red, green, blue, clear (unfiltered).
        Each value is provided as a byte.

        :return: a (r,g,b,c) tuple of the 4 byte values measured by the red/green/blue/clear channels
         N/A raw_color N/A N/A N/A self bus read_i2c_block_data N/A self _I2C_SENSOR_ADDRESS N/A self _REGISTER_DATA_GREEN_LOW 8 N/A N/A N/A raw_color N/A 3 N/A raw_color N/A 1 N/A raw_color N/A 5 N/A raw_color N/A 7 N/A read_xy N/A N/A self N/A N/A N/A  Reads the measured color and converts it as CIE x,y coordinates.

        See http://www.techmind.org/colour/ and https://en.wikipedia.org/wiki/CIE_1931_color_space for more information.

        :return: a (x, y) tuple
         N/A rgbc N/A N/A self read_rgbc_word N/A x_bar N/A N/A N/A -0.14282 N/A rgbc N/A 0 N/A 1.54924 N/A rgbc N/A 1 N/A -0.95641 N/A rgbc N/A 2 N/A y_bar N/A N/A N/A -0.32466 N/A rgbc N/A 0 N/A 1.57837 N/A rgbc N/A 1 N/A -0.73191 N/A rgbc N/A 2 N/A z_bar N/A N/A N/A -0.68202 N/A rgbc N/A 0 N/A 0.77073 N/A rgbc N/A 1 N/A 0.56332 N/A rgbc N/A 2 N/A x N/A x_bar N/A N/A x_bar y_bar z_bar N/A y N/A y_bar N/A N/A x_bar y_bar z_bar N/A N/A x y N/A read_color_name N/A N/A self N/A N/A N/A  Reads the measured color and maps it to the nearest color present in COLOR_TABLE.

        Warning: current implementation does not work well with white / grey / black or dark colors.

        :return: The color name used as a key in COLOR_TABLE.
         N/A xy N/A N/A self read_xy N/A closest_color None N/A closest_distance 1 N/A current_color N/A self COLOR_TABLE N/A N/A current_coordinates N/A N/A self COLOR_TABLE N/A current_color N/A current_dist N/A N/A math sqrt N/A N/A N/A N/A current_coordinates N/A y N/A xy N/A 1 2 N/A N/A N/A current_coordinates N/A x N/A xy N/A 0 2 N/A N/A current_dist closest_distance N/A N/A closest_color current_color N/A closest_distance current_dist N/A closest_color N/A N/A