UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

TCS3414CS Class

Module: tcs3414cs

This module defines the TCS3414CS interface for the color sensor
tcs3414cs.jpg

Item Index

Methods

TCS3414CS

(
  • bus
  • addr
)
Number

Instantiates a TCS3414CS object

Parameters:

  • bus Number

    Number of the used bus

  • addr Number

    I2C address of the device

Returns:

Number:

readRGB

(
  • rgb
)

Gets the RGB value from the sensor.

Parameters:

  • rgb Tcs3414sc_rgb_t

    Color values

clearInterrupt

()

Clears interrupts.

name

() String

Returns the name of the component

Returns:

String: