Redirecting you to Developer Center... Click here if you are not automatically redirected.
The mounted virtual drive contains an installer file “Windows_10_IoT_Core_QCDB410C.msi”. Double click the file to start the installation.
The installer creates a new directory: C:\Program Files (x86)\Microsoft IoT\FFU\QCDB410C\ which contains the DragonBoard410c image file “flash.ffu”.
Unlike Raspberry Pi 2 or 3 and Minnowboard Max, we will not be applying this FFU to an SD card. Instead, we will use this flash file on the next page.
Unlike the Raspberry Pi 2 or 3 and Minnowboard Max, you *do not* need an SD card to load the Windows IoT Core image to your DragonBoard. The image will be directly uploaded to the board!
The first of the four switches is set to ON, and the other 3 switches are set to OFF.
Click the “Program” Button and wait for the image to be downloaded to the board.
NOTE: The download will overwrite any previous content of the eMMC memory.
The DragonBoard410c has onboard WiFi, but you may also choose to use a USB Ethernet Adapter to connect toa local network with an Ethernet cable.
DragonBoard supports the TRENDnet TU2-ET100 USB ethernet adapter. All you need to do is connect the adapter via USB and then to your local network using a standard ethernet cable.
Other network adapters may also be compatable with DragonBoard, although they may not have been tested.
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 330 Ω resistor
A breadboard and a couple of connector wires
An LED (any color you like)
Perform the following steps to create the circuit:
Connect the longer leg of the LED to the resistor.
NOTE: the polarity of the LED is important (this configuration is commonly known as Active Low).
For reference, the functionality of the low-speed expansion connector is outlined in the following diagram:
Finally, the LED_PIN variable of _MainPage.xaml.cs_ file of the sample code will need the following modification:
Here is an illustration of what your breadboard might look like with the circuit assembled:Image made with Fritzing
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: