|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.robotics.BasicLED
public class 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 falseMethod Detail |
---|
public boolean isOn()
isOn
in interface LED
public void off()
off
in interface LED
public void on()
on
in interface LED
public void toggle()
toggle
in interface LED
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |