예제 #1
0
        public FolienTastatur()
        {
            wiringPiLib.WiringPiSetupGpio();

            for (int i = 0; i < Rows.Length; i++)
            {
                wiringPiLib.PinMode(Rows [i], PinType.OUTPUT);
                wiringPiLib.DigitalWrite(Rows [i], 0);
                wiringPiLib.PinMode(Cols [i], PinType.INPUT);
                wiringPiLib.PullUpDnControl(Cols[i], PullUpType.PUD_DOWN);
            }
        }
예제 #2
0
 private void Ausschalten()
 {
     WiringPiLib.DigitalWrite(In1, 0);
     WiringPiLib.DigitalWrite(In2, 0);
     WiringPiLib.DigitalWrite(In3, 0);
     WiringPiLib.DigitalWrite(In4, 0);
 }