Пример #1
0
        public override void HandleMessage(ADMMessage message)
        {
            //check if the transmit pin is viable
            if (_transmitPin == ArduinoPin.BOARD_SPECIFIED && message.HasValue("TP"))
            {
                int tp = message.GetInt("TP");
                ConfigurePin(tp, PinMode.PwmOutput);
                Mgr.UpdateDevice(this);
                _transmitPin = tp;
            }

            base.HandleMessage(message);
        }