public void ResponsePackageRecieved(byte responsePackage) { bool belongsToPin = ArduinoPinUtilities.ResponsePackageBelongsToPin(pinNumber, responsePackage); if (belongsToPin) { // Stop listening for a response package. Read the pin state and send it out to the listeners. toggleListeningForResponePackageEventHandler((IPinMapping)this, false); int state = ArduinoPinUtilities.ReadPinState(responsePackage); PinFeedback feedback = new PinFeedback(pinNumber, state); if (FeedbackEvent != null) { FeedbackEvent(feedback); } } }
private void PinFeedbackRecievedEventHandler(PinFeedback feedback) { // RBakerFlag -> Do something. }
private void ResponsePackageRecieved(PinFeedback feedback) { SetDisplay(feedback.PinState); }
public void ResponsePackageRecieved(byte responsePackage) { bool belongsToPin = ArduinoPinUtilities.ResponsePackageBelongsToPin(pinNumber, responsePackage); if (belongsToPin) { // Stop listening for a response package. Read the pin state and send it out to the listeners. toggleListeningForResponePackageEventHandler((IPinMapping)this, false); int state = ArduinoPinUtilities.ReadPinState(responsePackage); PinFeedback feedback = new PinFeedback(pinNumber, state); if (FeedbackEvent != null) FeedbackEvent(feedback); } }