public class AdafruitI2cColorSensor extends AMSColorSensorImpl
AdafruitI2cColorSensor
provides an implementation of color sensor functionality
for the AdaFruit color sensorAMSColorSensor.Config, AMSColorSensor.Enable, AMSColorSensor.Gain, AMSColorSensor.LEDDrive, AMSColorSensor.Parameters, AMSColorSensor.Pers, AMSColorSensor.Register, AMSColorSensor.Status, AMSColorSensor.Wait
HardwareDevice.Manufacturer
TAG
parameters
deviceClient, deviceClientIsOwned, isInitialized
AMS_COLOR_COMMAND_BIT, AMS_COLOR_COMMAND_TYPE_AUTO_INCREMENT, AMS_COLOR_COMMAND_TYPE_REPEATED_BYTE, AMS_COLOR_COMMAND_TYPE_RESERVED, AMS_COLOR_COMMAND_TYPE_SPECIAL, AMS_TCS34725_ADDRESS, AMS_TCS34725_ID, AMS_TMD37821_ADDRESS, AMS_TMD37821_ID, AMS_TMD37823_ID
Constructor and Description |
---|
AdafruitI2cColorSensor(I2cDeviceSynchSimple deviceClient) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeviceName()
Returns a string suitable for display to the user as to the type of device.
|
HardwareDevice.Manufacturer |
getManufacturer()
Returns an indication of the manufacturer of this device.
|
alpha, argb, blue, delay, disable, dumpState, enable, enableLed, getDeviceID, getI2cAddress, getNormalizedColors, green, internalInitialize, is3782, isConnectedAndEnabled, isLightOn, normalToUnsignedShort, read, read8, readEnable, readEnableAfterWrite, readUnsignedByte, readUnsignedShort, red, setGain, setI2cAddress, setIntegrationTime, setPDrive, setProximityPulseCount, testBits, testBits, testBits, testBits, updateControl, write, write8, writeEnable
doInitialize, getParameters, initialize
close, disengage, engage, getConnectionInfo, getDeviceClient, getVersion, initialize, initializeIfNecessary, onModuleStateChange, registerArmingStateCallback, resetDeviceConfigurationForOpMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParameters, initialize
close, getConnectionInfo, getVersion, resetDeviceConfigurationForOpMode
public AdafruitI2cColorSensor(I2cDeviceSynchSimple deviceClient)
public java.lang.String getDeviceName()
HardwareDevice
getDeviceName
in interface HardwareDevice
getDeviceName
in class AMSColorSensorImpl
public HardwareDevice.Manufacturer getManufacturer()
HardwareDevice
getManufacturer
in interface HardwareDevice
getManufacturer
in class AMSColorSensorImpl