Class MatricialKeyboard
java.lang.Object
|
+--DigitalComponent_std
|
+--MatricialKeyboard
- public class MatricialKeyboard
- extends DigitalComponent_std
- implements DigitalComponent
Instances of this class are matricial keyboard with a Mux and a DeMux.
- Pin 1 to 3 are inputs : demux entry -> col.
- Pin 4 to 6 are outputs : mux output -> ~line.
- Pin 7 is output : if true -> some keys are pressed.
- Pin 8 is output : 8th line of the keyboard.
You can read the source of this class here.
Method Summary |
java.lang.String |
getState()
Returns the state of the component. |
void |
setPinStateDontNotify(int p,
boolean state)
Sets pin p of the component to the requested state without notifying the caller,
this is used by the notifying routine of the Pin, so you should add here the code handling
the response of the DigitalComponent to a change on its pins. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MatricialKeyboard
public MatricialKeyboard(DigitalComponentUI dui)
MatricialKeyboard
public MatricialKeyboard()
setPinStateDontNotify
public void setPinStateDontNotify(int p,
boolean state)
- Description copied from interface: DigitalComponent
- Sets pin p of the component to the requested state without notifying the caller,
this is used by the notifying routine of the Pin, so you should add here the code handling
the response of the DigitalComponent to a change on its pins.
- Specified by:
- setPinStateDontNotify in interface DigitalComponent
- Overrides:
- setPinStateDontNotify in class DigitalComponent_std
getState
public java.lang.String getState()
- Description copied from interface: DigitalComponent
- Returns the state of the component.
- Specified by:
- getState in interface DigitalComponent
- Overrides:
- getState in class DigitalComponent_std