Ejemplo n.º 1
0
        public void SetPinChangeType(byte pin, byte param, PinChangeType type)
        {
            byte[][] expected = { new byte[] { 0x05, 0x09, pin, param } };

            gpio.Pins[pin].SetChangeType(type);

            Assert.That(platform.GetCommands(), Is.EqualTo(expected));
        }
Ejemplo n.º 2
0
 public void SetChangeType(PinChangeType type)
 {
     bridge.sendCommand(new byte[] { (byte)GPIO, PIN_CHANGE, pin, (byte)(type + 1) });
 }