Redirecting you to Developer Center... Click here if you are not automatically redirected.

Docs and Samples

Download code samples to get started with Windows on Devices. Also, read docs to help you use tools and resources to help you develop.


Did you set up your environment?

We assume you already set up your environment, have a working Visual Studio and have a device running Windows IoT Core (MinnowBoard Max or Raspberry Pi 2 or 3).


Questions/Suggestions

Remember, you can always send contact us for help and suggestions!


How To Download These Samples

The easiest way to download these samples is to navigate to the GitHub repo ms-iot/samples by clicking here, and then click on the Download ZIP button on the right-hand menu. Once you download and unzip the file locally, you will be able to see all the samples.

Hardware Pin Mappings

Pinout and interfacing information for GPIO, SPI, and I2C

Raspberry Pi 2 and 3 Pinout
MinnowBoard Max Pinout
Dragonboard Pinout beginner, hardware

Visual Studio App Deployment

Use Visual Studio to deploy and debug applications on your Windows 10 IoT Core device

Learn More beginner, debug, deploy, visual studio

Windows Device Portal

Connect to, control, configure, and get advanced diagnostics about your machine from the web

Learn More beginner, configuration

Headed and Headless devices

Windows IoT Core can either be in headed or headless mode. The difference is the presence or absence of any form of UI

Learn More beginner, deploy

On-Device Command-line Utilities

A set of tools available on your device to help you configure a slew of options

Learn More beginner, tool, configuration

Windows 10 IoT Core Porting Tool

A tool for helping you port your existing Win32 and Windows CE applications to Windows 10 IoT Core

Learn More advanced, tool, port

Glossary

A list of commonly used phrases and their meanings

Learn More beginner

Using PowerShell

Allows Remote Administration and Configuration so that you can remotely configure and manage any Windows IoT Core device

Learn More intermediate, tool, configuration

Using SSH

Allows Remote Administration and Configuration of your Windows IoT Core device over SSH

Learn More intermediate, tool, configuration

Ecosystem Compatibility List

Find a list of supported peripherals, interfaces, and protocols on Window 10 IoT Core devices

Learn More intermediate, hardware, platform

Access your files using FTP

Access the files on your device using FTP

Learn More beginner

Access your files using Windows File Sharing

Access the files on your device using Windows file sharing

Learn More beginner

WiFi Connectivity

Setup and configure WiFi on your Windows IoT Core device

Learn More beginner, wifi, connectivity

Bluetooth Support

Windows IoT Core Bluetooth support information

Learn More beginner, bluetooth, connectivity

Embedded Mode

Enable embedded mode on desktop and mobile

Learn More advanced

Windows 10 IoT Core Pro

Create a Windows 10 IoT Core Pro image

Learn More advanced

Unavailable Universal APIs

Windows IoT Core is a work in progress. Here are the UWP APIs that have not been implemented yet on our platform

Learn More intermediate, api

Enabling Secure Boot and BitLocker

Learn how to secure your IoT device by enabling Secure Boot and BitLocker device encryption on supported IoT Core devices

Learn More advanced

AllJoyn Connectivity

Learn more about AllJoyn and explore the capabilities of the AllJoyn Device System Bridge with Windows 10 IoT Core

Learn More advanced, alljoyn, platform

Using WINDBG

Use WINDBG to debug

Learn More advanced, debug

Universal Write Filter

Enable a write filter on your OS image

Learn More advanced

Securing IoT Devices with TPMs

Learn about Trusted Platform Modules (TPMs), along with various implementations on IoT Core as well as code samples

Learn More advanced
</style>

Hello, World!

Create a 'Hello World' application that runs on devices running Windows 10 IoT Core

Hello World (C#)
Hello World (Python)
Hello World (Node.js)

Hello Blinky (Headless App)

Create an app with no UI that toggles an LED on devices running Windows 10 IoT Core

Blinky (C#)
Blinky (Python)
Blinky (Wiring)

UI Blinky App

Create a UI-based app that toggles an LED on devices running Windows 10 IoT Core

UI Blinky (C#/C++)

USB Web camera Sample (Windows Universal)

Create an app to take photo, record video and audio using a USB Web Camera on Windows IoT core

Learn More

Cylon Node.js App (Console)

Control an Arduino with a Cylon Node.js app running on a Raspberry Pi 2 with Windows 10 IoT Core

Cylon (Node.js)

Azure Node.js Sample (UWP)

Upload sensor data to Azure storage from a Node.js UWP app

Azure (Node.js)

Cylon Node.js App (UWP)

Control a servo connected to an Arduino using Cylon in a Node.js UWP app

Cylon (Node.js)

Johnny-Five Node.js App (UWP)

Control a servo connected to an Arduino using Johnny-Five in a Node.js UWP app

Johnny-Five (Node.js)

Bluetooth Low Energy GATT Sample (Windows Universal)

Learn how to interact with Bluetooth Low Energy devices on Windows 10 IoT core.

Bluetooth GATT (C#)

OneNote API

Learn how to use http messages to GET and POST OneNote pages in Wiring.

OneNote API (Wiring)

Lightning Providers samples (UWP)

Demonstrating the use of Microsoft.IoT.Lightning.Providers in UWP apps

Blinky UI (C#/C++)
Blinky Headless (C#/C++)
Weather Station (C#/C++)
SPI Display (C#/C++)
Blinky Headless (Node.js)

Connecting to a WiFi Network

Learn how to discover and connect to a WiFi network from a UWP app using Windows.Devices.WiFi.WiFiAdapter API

WiFi Connect Sample (C#)

App Installation Sample

Learn how to install and deploy an app on Windows IoT Core

Learn More

IoT Core Default App

Create a UWP app that provides a device-management experience for Windows 10 IoT Core

Iot Core Default App (C#)

Push Button

Create an app that uses the Raspberry Pi 2 to read the status of a Push Button and control an LED.

Push Button (C#)

Blinky Webserver

Create a Webserver app that controls an LED on devices running Windows 10 IoT Core

Webserver Blinky (C#)
Webserver Blinky (Python)
Webserver Blinky (Node.js)

IoT Browser Sample (Windows Universal)

Learn how to create a simple web browser for Windows 10 IoT core.

IoT Browser (C#)

I2C/SPI Accelerometer

Create an app leveraging I2C or SPI on devices running Windows 10 IoT Core

I2C Accelerometer (C#)
SPI Accelerometer (C#)

SPI Display

Create an app using SPI on devices running Windows 10 IoT Core

SPI Display (C#)

RGB LED

Create an app that uses the Raspberry Pi 2 to toggle an RGB LED.

RGB LED (C#)

Potentiometer Sensor Sample

A analog sensor is connected to Raspberry Pi through ADC converter and digital output data is displayed through Monitor and LED.

Potentiometer Sensor Sample (C#)Potentiometer Sensor Sample (Wiring)

GpioTestTool (Console)

This simple command line utility shows how to use the Gpio WinRT APIs from standard C++.

GpioTestTool (C++)

I2cTestTool (Console)

This simple utility shows how to use C++/CX in command line programs.

I2cTestTool (C++)

SpiTestTool (Console)

Write and read from SPI devices on the command line.

SpiTestTool (C++)

Serial UART Sample (Windows Universal)

Create an app to read and write to UART interfaces on Windows IoT core

SerialSample (C#/C++)

GPIO OneWire (C++)

Create an app that uses GPIO to read from the DHT11, a temperature and humidity sensor that uses a single-wire protocol.

GPIO OneWire (C++)

RGB Pixel Strip

Learn how to use an RGB Pixel Strip in Wiring.

RGB Pixel (Wiring)

LCD Screen

Learn how to use an LCD Screen in Wiring.

LCD Screen (Wiring)

Stepper Motor

Learn how to use a Stepper Motor in Wiring.

Stepper Motor (Wiring)

Weather Station

Learn how to create a Weather Station in Wiring.

Weather Station (Wiring)

Digital Signage Sample

Showcases a Digital Sign app running on Windows 10 IoT Core

DigitalSignageUWP (C#)

Express Node.js App (UWP)

Create an Express Node.js app that runs on devices running Windows 10 IoT Core

Express (Node.js)

Controlling DC Motors

Learn to control DC motors using a Windows IoT Core enabled device!

DC Motors (Wiring)

Console App

Create a console app that monitors memory usage on devices running Windows 10 IoT Core

Console App (C++)
Console App (Node.js)

Launching an external program

Learn how to use Windows.System.ProcessLauncher API to launch external executable programs from your UWP app

ProcessLauncher API Sample (C#)

DeviceIoControlUwp Sample

Learn how to use CreateFile() and DeviceIoControl() to access custom devices from UWP.

Learn More

AllJoyn Connectivity

Learn more about AllJoyn and explore the capabilities of the AllJoyn Device System Bridge with Windows 10 IoT Core

Learn More

Driver Sample

Create and interact with a universal driver on devices running Windows 10 IoT Core

Driver Sample (C++)

I2C Port Expander

Create an app that uses the Raspberry Pi 2 I2C bus to communicate with a port expander.

I2C Port Expander (C#)

Serial-In, Parallel-Out Shift Register

Create an app that uses the Raspberry Pi 2 to control LEDs using a serial-in, parallel-out shift register.

Shift Register (C#)