public class BrickletRGBLED extends Device
Modifier and Type | Class and Description |
---|---|
class |
BrickletRGBLED.RGBValue |
Device.Identity
Modifier and Type | Field and Description |
---|---|
static String |
DEVICE_DISPLAY_NAME |
static int |
DEVICE_IDENTIFIER |
static byte |
FUNCTION_GET_IDENTITY |
static byte |
FUNCTION_GET_RGB_VALUE |
static byte |
FUNCTION_SET_RGB_VALUE |
Constructor and Description |
---|
BrickletRGBLED(String uid,
IPConnection ipcon)
Creates an object with the unique device ID \c uid.
|
Modifier and Type | Method and Description |
---|---|
Device.Identity |
getIdentity()
Returns the UID, the UID where the Bricklet is connected to,
the position, the hardware and firmware version as well as the
device identifier.
|
BrickletRGBLED.RGBValue |
getRGBValue()
Returns the *r*, *g* and *b* values of the LED as set by
setRGBValue(short, short, short) . |
void |
setRGBValue(short r,
short g,
short b)
Sets the *r*, *g* and *b* values for the LED.
|
getAPIVersion, getResponseExpected, setResponseExpected, setResponseExpectedAll
public static final int DEVICE_IDENTIFIER
public static final String DEVICE_DISPLAY_NAME
public static final byte FUNCTION_SET_RGB_VALUE
public static final byte FUNCTION_GET_RGB_VALUE
public static final byte FUNCTION_GET_IDENTITY
public BrickletRGBLED(String uid, IPConnection ipcon)
public void setRGBValue(short r, short g, short b) throws TinkerforgeException
TinkerforgeException
public BrickletRGBLED.RGBValue getRGBValue() throws TinkerforgeException
setRGBValue(short, short, short)
.TinkerforgeException
public Device.Identity getIdentity() throws TinkerforgeException
getIdentity
in class Device
TinkerforgeException
Copyright © 2021 Tinkerforge GmbH. All rights reserved.