TCS3472

Color Light-to-Digital Converter with IR Filter

Device Details

  • Device address 41
  • Address type 7-bit

Registers

Blue

Blue channel * Address 186 * 16-bytes * Read-only

Blue light as an int. Divide by ambient light to get scaled number.

Clear

Clear channel * Address 180 * 16-bytes * Read-only

This is the ambient amount of detected light.

Enable

Enable * Address 128 * 8-bytes

Enable specific components of the peripheral

Green

Green channel * Address 184 * 16-bytes * Read-only

Green light as an int. Divide by ambient light to get scaled number.

Red

Red channel * Address 182 * 16-bytes * Read-only

Red light as an int. Divide by ambient light to get scaled number.

Fields

#/registers/Enable/init

Setup the device configuration

  • Bits 7:0

Field values

  • 1: Power
  • 2: Color

Enable RGBC and Power.

Functions

  • _lifecycle: Enables features on device.

License

TCS3472 version 0.1.0. Generated from Cyanobyte Codegen version HEAD.

Contact Nick Felker.

Copyright Google Inc. 2019. Published under Apache-2.0.