Ejemplo n.º 1
0
 public ShiftRegister(int number, ShiftRegisterType type)
 {
     _isEnabled   = false;
     _number      = number;
     _buttonCnt   = 0;
     _registerCnt = 0;
     _type        = type;
     _latchPin    = ShiftRegSourceType.NotDefined;
     _dataPin     = ShiftRegSourceType.NotDefined;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }