|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ridgesoft.robotics.BasicLED
Implements the LED inteface to a DigitalOutput class which controls an LED.
| Constructor Summary | |
BasicLED(DigitalOutput digitalOutput,
boolean isActiveLow)
Constructs a BasicLED object. |
|
| Method Summary | |
boolean |
isOn()
Reads the state of the LED. |
void |
off()
Turns the LED off. |
void |
on()
Turns the LED on. |
void |
toggle()
Toggles the state of the LED. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
public BasicLED(DigitalOutput digitalOutput,
boolean isActiveLow)
digitalOutput - the digital output that controls the LED's stateisActiveLow - true if the LED is on when the output is low, otherwise false| Method Detail |
public boolean isOn()
isOn in interface LEDpublic void off()
off in interface LEDpublic void on()
on in interface LEDpublic void toggle()
toggle in interface LED
|
RoboJDETM v1.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||