If you've followed my two previous Windows 10 IoT blogs on how to set up the your Raspberry Pi 2 with Windows 10 IoT and how to set up your PC with Vistual Studio 2015 then now it's time to upload some code to the Pi and make a LED light blink. Cool!

Set up Blinky

Microsoft has released Blinky onto their Git page. Download it from here.

Once downloaded, launch the Blinky.csproj file into Vistual Studio 2015

Next set the Remote Debugging to point to the Raspberry Pi. Ensure 'Arm' is selected in the drop down next to 'Debug'. Choose 'Remote Machine' from the next drop down.

Then configure the Remote Machine details with the IP address of the Pi and set Authentication to None.

I already have these settings configured and these can be viewed or amended from the Project>Blinky Properties menu.

Connect the LEDs to the Windows IoT device

To be able to set up this project you need the following components:

  • A Raspberry Pi 2
  • a LED light
  • a 220 Ω resistor
  • a breadboard
  • 2 x Female to Male connector wires

For a reference of the Raspberry Pi 2 pins take a look at this diagram.

Now connect a wire from Pin 1 on your Raspberry Pi and Pin 29 (GPIO) to the breadboard. 

Connect the short leg of the LED (the negative) to the same row as the GPIO 5 (pin 29) connector and the long leg (the positive) to the next row along.

Now take the resistor and connect to the same row as the long leg of the LED (the positive) and the same row as Pin 1 to complete the circuit.

Here's a graphical representation of what you are building.

Upload the code to the Raspberry Pi 2

It's time to upload the app to your Windows 10 IoT device. Note that I have changed the colour of the LED graphic within the app to match my green LED. Click the Remote Machine icon in the menu bar.

Deployment of the app to the Pi 2 will commence.

The Windows 10 IoT device will load the app

..and here we go. Blinking lights and other revelations.

To see a live demo of Blinky and more, check out the Windows for Makers: Raspberry Pi 2, Arduino and More demo from the Microsoft Build 2015 event.

Over the coming days I'll be trying out some other Windows Apps examples and moving onto checking out the Arduino.