Beispiel #1
0
 public GPIO(Designator portExpander, byte pin, GPIOType input, CheckBox chk)
 {
     PortExpander = portExpander;
     Pin          = pin;
     Input        = input;
     PullUp       = (input == GPIOType.Input || input == GPIOType.nInput); //in our circuit all inputs require pullups
     Chk          = chk;
 }
Beispiel #2
0
 public GPIO(Designator portExpander, byte pin, GPIOType input, CheckBox chk)
 {
     PortExpander = portExpander;
     Pin = pin;
     Input = input;
     PullUp = (input==GPIOType.Input || input==GPIOType.nInput); //in our circuit all inputs require pullups
     Chk = chk;
 }