|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dexterind.gopigo.components.Led
public class Led
Handles the LED functions.
| Field Summary | |
|---|---|
private static Board |
board
The main object which handles the methods to get access to the resources connected to the board. |
private Debug |
debug
The debug object. |
private int |
id
The current led id |
static int |
LEFT
The left pin ID. |
private static int |
LEFT_PIN_A
The left pin code. |
private static int |
LEFT_PIN_B
The left pin code. |
private int |
pin
The current pin code. |
static int |
RIGHT
The right pin ID. |
private static int |
RIGHT_PIN_A
The right pin code. |
private static int |
RIGHT_PIN_B
The right pin code. |
| Constructor Summary | |
|---|---|
Led(int id)
|
|
| Method Summary | |
|---|---|
int |
off()
Turns the led OFF. |
int |
on()
Turns the led ON. |
void |
setPin()
Sets the pin to use for the led. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int LEFT_PIN_A
private static final int RIGHT_PIN_A
private static final int LEFT_PIN_B
private static final int RIGHT_PIN_B
public static final int LEFT
public static final int RIGHT
private static Board board
private int pin
private int id
private Debug debug
| Constructor Detail |
|---|
public Led(int id)
| Method Detail |
|---|
public void setPin()
pin - The number of the pin where the led is attached.public int on()
java.io.IOExceptionpublic int off()
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||