Ejemplo n.º 1
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     StopBlinking();
     gpio.Dispose();
     gpio = null;
     ble.Dispose();
     ble = null;
     Debug.WriteLine("Stopped");
 }
Ejemplo n.º 2
0
        public MainPage()
        {
            this.InitializeComponent();
            gpio = new GPIO(13, 21, 10, 7, Dispatcher);
            gpio.GpioContinueButtonDown += Gpio_GpioContinueButtonDown;
            gpio.GpioContinueButtonUp   += Gpio_GpioContinueButtonUp;
            gpio.GpioStopButtonDown     += Gpio_GpioStopButtonDown;
            gpio.GpioStopButtonUp       += Gpio_GpioStopButtonUp;

            ble = new CascableBasicUserInput(Dispatcher);
            ble.StateChanged += Ble_StateChanged;

            StartBlinking();
        }