public ShiftRegister(int number, ShiftRegisterType type) { _isEnabled = false; _number = number; _buttonCnt = 0; _registerCnt = 0; _type = type; _latchPin = ShiftRegSourceType.NotDefined; _dataPin = ShiftRegSourceType.NotDefined; }
public ShiftRegister(int number, int buttonCnt, ShiftRegisterType type, ShiftRegSourceType latchPin, ShiftRegSourceType dataPin) { _isEnabled = false; _number = number; _buttonCnt = buttonCnt; _registerCnt = (int)((float)_buttonCnt / 8.0); _type = type; _latchPin = latchPin; _dataPin = dataPin; }
public ShiftRegister(int number, int buttonCnt) { _isEnabled = false; _number = number; _buttonCnt = buttonCnt; _registerCnt = (int)Math.Ceiling((float)_buttonCnt / 8.0); _type = ShiftRegisterType.HC165_PullUp; _latchPin = ShiftRegSourceType.NotDefined; _dataPin = ShiftRegSourceType.NotDefined; }
public ShiftRegister(int number, int buttonCnt, ShiftRegisterType type) { _isEnabled = false; _number = number; _buttonCnt = buttonCnt; _registerCnt = (int)((float)_buttonCnt / 8.0); _type = type; _latchPin = ShiftRegSourceType.NotDefined; _dataPin = ShiftRegSourceType.NotDefined; }