Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Windows.UI.Xaml.Controls;
- using Windows.Devices.Gpio;
- namespace GPIOIntroPi
- {
- public sealed partial class MainPage : Page
- {
- public MainPage()
- {
- InitializeComponent();
- InitGPIO();
- }
- private void InitGPIO()
- {
- var gpio = GpioController.GetDefault();
- if (gpio == null)
- {
- GpioStatus.Text = "There is no GPIO controller on this device.";
- return;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement