コード例 #1
0
 private void OnGpioStateChanged(BeagleGpioReader sender, GpioChangedEventArgs e)
 {
     if (this.onGpioStateChanged == null)
     {
         this.onGpioStateChanged = this.OnGpioStateChanged;
     }
     this.gpioStateChanged(sender, e);
 }
コード例 #2
0
 private static void BeagleGpioReader_04_gpioStateChanged(BeagleGpioReader sender, BeagleGpioReader.GpioChangedEventArgs e)
 {
     OnOffSensor_04.Input = e.ActState;
 }
コード例 #3
0
 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;
 }