public class TCS34725ColorSensor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
good_data_read
True if the last read from the sensor was good, bad if data was corrupted
|
boolean |
sensor_initalized
True if sensor has been initialized, false if not
|
Modifier and Type | Method and Description |
---|---|
int |
getBlueVal()
Returns the most recent blue intensity read from the sensor
|
int |
getClearVal()
Returns the most recent overall intensity read from the sensor
|
int |
getGreenVal()
Returns the most recent green intensity read from the sensor
|
int |
getRedVal()
Returns the most recent red intensity read from the sensor
|
int |
init()
Initializes the actual sensor state so colors can be read.
|
int |
readColors()
Queries the sensor for the red, green, blue, and clear values Qualifies the read to ensure
the sensor has not been reset since the last read.
|
public boolean sensor_initalized
public boolean good_data_read
public int init()
public int readColors()
public int getRedVal()
public int getGreenVal()
public int getBlueVal()
public int getClearVal()