Ejemplo n.º 1
0
 public TM1637Display(int clockPin, int dataPin, int brightnessPercent)
 {
     CLKPin = clockPin;
     DIOPin = dataPin;
     Reset();
     WiringPi.PinMode(CLKPin, WiringPiConst.Output);
     WiringPi.PinMode(DIOPin, WiringPiConst.Output);
     WiringPi.PullUpDnControl(DIOPin, WiringPiConst.PudUp);
     // clearing display included
     BrightnessPercent = brightnessPercent;
 }