Appendix A. Code examples for controlling LED using Visual Basic and JavaScript

Here you find additional examples for controlling the LED circuit you developed in Chapter 2, “Universal Windows Platform on devices.” The following sample applications offer alternative ways for accessing the UWP and do not show any additional functionality.

Headed app using Visual Basic/XAML

The implementation of the IoT Hello, World! app proceeds as follows:

1. Open the New Project dialog box.

2. In the New Project dialog box:

a. Type Visual Basic in the search box.

b. Select the Blank App (Universal Windows) project template.

c. Change the app name to HelloWorldIoTVB and click the OK button.

3. Open MainPage.xaml.vb and edit it according to Listing A-1.

4.

Get Programming for the Internet of Things: Using Windows 10 IoT Core and Azure IoT Suite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.