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; }
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; }