Beispiel #1
0
 public DigitalIOImplementation(byte pin, bool initialState, GTI.GlitchFilterMode glitchFilter, GTI.ResistorMode resistorMode, IO60P16 io60)
 {
     this.io60         = io60;
     this.pin          = pin;
     this.resistorMode = resistorMode;
     this.Mode         = GTI.IOMode.Input;
     this.io60.WriteDigital(this.pin, initialState);
 }
Beispiel #2
0
 public override void Write(bool state)
 {
     this.Mode = GTI.IOMode.Output;
     this.io60.WriteDigital(this.pin, state);
 }
Beispiel #3
0
 public override bool Read()
 {
     this.Mode = GTI.IOMode.Input;
     return(this.io60.ReadDigital(this.pin));
 }