コード例 #1
0
            public ButtonPad(GPIOButtonInputProvider sink, Button button, Cpu.Pin pin, Port.InterruptMode mode)
            {
                _sink     = sink;
                _button   = button;
                _buttonDevice = InputManager.CurrentInputManager.ButtonDevice;

                _port = new InterruptPort( pin, true, Port.ResistorMode.PullUp, mode );

                _port.OnInterrupt += new NativeEventHandler(this.Interrupt);
            }
コード例 #2
0
            public ButtonPad(GPIOButtonInputProvider sink, Button button, Cpu.Pin pin, Port.InterruptMode mode)
            {
                _sink         = sink;
                _button       = button;
                _buttonDevice = InputManager.CurrentInputManager.ButtonDevice;

                _port = new InterruptPort(pin, true, Port.ResistorMode.PullUp, mode);

                _port.OnInterrupt += new NativeEventHandler(this.Interrupt);
            }
コード例 #3
0
ファイル: Main.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {
            GPIOButtonInputProvider inputProvider = new GPIOButtonInputProvider(null);

            SampleApplication myApplication = new SampleApplication();

            Window mainWindow = myApplication.CreateUI();
            mainWindow.Background = new SolidColorBrush(Colors.Black);
            mainWindow.Visibility = Visibility.Visible;

            myApplication.Run(mainWindow);
        }
コード例 #4
0
ファイル: Main.cs プロジェクト: leeholder/Netduino_SDK
        public static void Main()
        {
            GPIOButtonInputProvider inputProvider = new GPIOButtonInputProvider(null);

            SampleApplication myApplication = new SampleApplication();

            Window mainWindow = myApplication.CreateUI();

            mainWindow.Background = new SolidColorBrush(Colors.Black);
            mainWindow.Visibility = Visibility.Visible;

            myApplication.Run(mainWindow);
        }