Пример #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);
 }
Пример #2
0
 public override void Write(bool state)
 {
     this.Mode = GTI.IOMode.Output;
     this.io60.WriteDigital(this.pin, state);
 }
Пример #3
0
 public override bool Read()
 {
     this.Mode = GTI.IOMode.Input;
     return(this.io60.ReadDigital(this.pin));
 }