|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectperipherals.Peripheral
peripherals.LEDArray
public class LEDArray
This class is created in order to keep the information of eight “7LED”s. The class is inherited from the Peripheral class.
Field Summary |
---|
Fields inherited from class peripherals.Peripheral |
---|
id, isEnabled, KEY_PAD, LED_ARRAY, pic, POTENTIOMETER, SEVEN_SEGMENT_DISPLAY_ARRAY |
Constructor Summary | |
---|---|
LEDArray(PIC pic)
Constructor which initializes 8 LED objects with default settings. |
|
LEDArray(PIC pic,
boolean isEnabled)
Main constructor of LEDArray class. |
Method Summary | |
---|---|
LEDPanel |
getLedPanel()
This method returns the visual represantation of the LED array. |
void |
update()
This abstract method communicates with the virtual card and makes necessary changes on it. |
Methods inherited from class peripherals.Peripheral |
---|
getId, getPic, isEnabled, setEnabled, setId, setPic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LEDArray(PIC pic)
public LEDArray(PIC pic, boolean isEnabled)
isEnabled
- status of LEDArrayMethod Detail |
---|
public void update()
Peripheral
update
in class Peripheral
public LEDPanel getLedPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |