Exemplo n.º 1
0
 public UARTBusPi(byte Device, int Baud)
 {
     if (Device == 0)
     {
         RaspberryPi.SetPinMode(8, RaspberryPi.PinMode.OUTPUT);
         RaspberryPi.SetPinMode(10, RaspberryPi.PinMode.INPUT);
     }
     this.DeviceID = RaspberryPi.SerialOpen(Device, Baud);
 }
Exemplo n.º 2
0
 public DigitalInPi(int PinNumber)
 {
     this.PinNumber = PinNumber;
     RaspberryPi.SetPinMode(this.PinNumber, (int)RaspberryPi.PinMode.INPUT);
 }