|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnanovm.nibo.drivers.Leds
public class Leds
Provides methods to control the LEDs.
Field Summary | |
---|---|
static int |
FRONT_LEFT
|
static int |
FRONT_RIGHT
|
static int |
GREEN
|
static int |
LEFT
|
static int |
LEFT_FRONT
|
static int |
MAXIMUM_BRIGHTNESS
|
static int |
MINIMUM_BRIGHTNESS
|
static int |
OFF
|
static int |
ORANGE
|
static int |
RED
|
static int |
RIGHT
|
static int |
RIGHT_FRONT
|
Constructor Summary | |
---|---|
Leds()
|
Method Summary | |
---|---|
static int |
getDisplaylight()
get brightness of the display LEDs |
static int |
getHeadlights()
get brightness of the headlight LEDs |
static int |
getStatus(int led)
get color of a given status LED |
static void |
setDisplaylight(int brightness)
set brightness for the display LEDs |
static void |
setHeadlights(int brightness)
set brightness for the headlight LEDs |
static void |
setStatus(int led,
int color)
set color for a given status LED |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LEFT
public static final int LEFT_FRONT
public static final int FRONT_LEFT
public static final int FRONT_RIGHT
public static final int RIGHT_FRONT
public static final int RIGHT
public static final int OFF
public static final int GREEN
public static final int RED
public static final int ORANGE
public static final int MINIMUM_BRIGHTNESS
public static final int MAXIMUM_BRIGHTNESS
Constructor Detail |
---|
public Leds()
Method Detail |
---|
public static void setStatus(int led, int color)
led
- id of the status LEDcolor
- color for the status LEDpublic static int getStatus(int led)
led
- id of the status LED
public static void setHeadlights(int brightness)
brightness
- 0 for dark 1023 for maximum brightnesspublic static int getHeadlights()
public static void setDisplaylight(int brightness)
brightness
- 0 for dark 1023 for maximum brightnesspublic static int getDisplaylight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |