private void OnGpioStateChanged(BeagleGpioReader sender, GpioChangedEventArgs e) { if (this.onGpioStateChanged == null) { this.onGpioStateChanged = this.OnGpioStateChanged; } this.gpioStateChanged(sender, e); }
private static void BeagleGpioReader_04_gpioStateChanged(BeagleGpioReader sender, BeagleGpioReader.GpioChangedEventArgs e) { OnOffSensor_04.Input = e.ActState; }
private static void BeagleGpioReader_01_gpioStateChanged(BeagleGpioReader sender, BeagleGpioReader.GpioChangedEventArgs e) { //Console.WriteLine("GpioEvent happened. ActState = " + e.ActState.ToString() + " , oldState = " + e.OldState.ToString()); OnOffSensor_01.Input = e.ActState; }