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.WaitHardwareDevice.ManufacturerTAGparametersdeviceClient, deviceClientIsOwned, isInitializedAMS_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, writeEnabledoInitialize, getParameters, initializeclose, disengage, engage, getConnectionInfo, getDeviceClient, getVersion, initialize, initializeIfNecessary, onModuleStateChange, registerArmingStateCallback, resetDeviceConfigurationForOpModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParameters, initializeclose, getConnectionInfo, getVersion, resetDeviceConfigurationForOpModepublic AdafruitI2cColorSensor(I2cDeviceSynchSimple deviceClient)
public java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicegetDeviceName in class AMSColorSensorImplpublic HardwareDevice.Manufacturer getManufacturer()
HardwareDevicegetManufacturer in interface HardwareDevicegetManufacturer in class AMSColorSensorImpl