Redirecting you to Developer Center... Click here if you are not automatically redirected.
The tool will enumerate devices as shown. Select the SD card you want to flash, and then provide the location of the ffu to flash the image.
NOTE: IoTCoreImageHelper.exe is the recommended tool to flash the SD card. However, instructions are available for using DISM command line tool directly.
Safely remove your USB SD card reader by clicking on "Safely Remove Hardware" in your task tray, or by finding the USB device in File Explorer, right clicking, and choosing "Eject". Failing to do this can cause corruption of the image.
NOTE: If you want to remove Windows 10 IoT Core from your SD card after you are done using it, see the FAQ section titled "How do I remove Windows 10 IoT Core from my SD card?".
Connect a network cable from your local network to the Ethernet port on the board. Make sure your development PC is on the same network.
NOTE: If you don't have a local wired network, see here for additional connection options.
In this tutorial, we'll create a simple LED blinking app and connect a LED to your Windows 10 IoT Core device.
This is a headed sample. To better understand what headed mode is and how to configure your device to be headed, follow the instructions here.
Also, be aware that the GPIO APIs are only available on Windows 10 IoT Core, so this sample cannot run on your desktop.
You can find the source code for this sample by downloading a zip of all of our samples here and navigating to the
samples-develop\Blinky. The sample code is available in either C++ or C#, however the documentation here only details the C# variant. Make a copy of the folder on your disk and open the project from Visual Studio.
You'll need a few components:
A 220 Ω resistor
A breadboard and a couple of connector wires
An LED (any color you like)
Here is the pinout of the RPi2 and RPi3:
Here is an example of what your breadboard might look like with the circuit assembled:
x86. If you're building for Raspberry Pi 2, Raspberry Pi 3 or the DragonBoard, select
Local Machinedropdown and select
Universal (Unencrypted Protocol)Authentication Mode, then click Select.
Debugtab on the left:
When everything is set up, you should be able to press F5 from Visual Studio. If there are any missing packages that you did not install during setup, Visual Studio may prompt you to acquire those now. The Blinky app will deploy and start on the Windows IoT device, and you should see the LED blink in sync with the simulation on the screen.
Congratulations! You controlled one of the GPIO pins on your Windows IoT device.
The code for this sample is pretty simple. We use a timer, and each time the 'Tick' event is called, we flip the state of the LED.
Here is how you set up the timer in C#:
To drive the GPIO pin, first we need to initialize it. Here is the C# code (notice how we leverage the new WinRT classes in the Windows.Devices.Gpio namespace):
Let's break this down a little
GpioController.GetDefault()to get the GPIO controller.
pin, we set it to be off (High) by default using the
pinto run in output mode using the
Once we have access to the
GpioOutputPin instance, it's trivial to change the state of the pin to turn the LED on or off.
To turn the LED on, simply write the value
GpioPinValue.Low to the pin:
and of course, write
GpioPinValue.High to turn the LED off: