Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. using Windows.UI.Xaml.Controls;
  2. using Windows.Devices.Gpio;
  3.  
  4. namespace GPIOIntroPi
  5. {
  6. public sealed partial class MainPage : Page
  7. {
  8. public MainPage()
  9. {
  10. InitializeComponent();
  11.  
  12. InitGPIO();
  13. }
  14.  
  15. private void InitGPIO()
  16. {
  17. var gpio = GpioController.GetDefault();
  18.  
  19. if (gpio == null)
  20. {
  21. GpioStatus.Text = "There is no GPIO controller on this device.";
  22. return;
  23. }
  24.  
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement