public SpiComm(ISpiDevice spiDevice, GpioPin chipSelectGpioPin, object syncObj)
            {
                _spiDevice         = spiDevice;
                _chipSelectGpioPin = chipSelectGpioPin;
                _syncObj           = syncObj;

                _chipSelectGpioPin.Write(GpioPinValue.High);
            }
Exemplo n.º 2
0
 public PiFaceDevice(ISpiDevice spiDevice, byte enableInputInterruptMask, byte interruptGpioPin = 25, EdgeDetectionMode edge = EdgeDetectionMode.falling)
     : this(spiDevice)
 {
     if (enableInputInterruptMask > 0 && edge != EdgeDetectionMode.none)
     {
         InitializeEdgeDetection(enableInputInterruptMask);
         this.EdgeDetector = new GpioEdgeDetector(interruptGpioPin, edge);
     }
 }
Exemplo n.º 3
0
 public PiFaceDevice(ISpiDevice spiDevice)
 {
     this.SpiDevice = spiDevice;
     this.Initialize();
 }
Exemplo n.º 4
0
 public MockSpiComm(ISpiDevice spiDevice)
 {
     _spiDevice = spiDevice;
 }
Exemplo n.º 5
0
 public PiFaceDevice(ISpiDevice spiDevice)
 {
     this.SpiDevice = spiDevice;
     this.Initialize();
 }