"Window IoT-2" led flashing and animated (Raspberry Pi Pi2)

Source: Internet
Author: User

In the previous blog, Windows IoT system installation, we implemented the window IoT on the Raspberry Pi 2 platform, and this article will cover program development on the platform.

In the initial information obtained, thought that Windows10 IoT version does not support the interface development, did not think, after the actual test, the screen function support is also good (screen function support, through the command can be opened can also be closed). The support of the screen feature will make the application scenarios of Windows IoT system more numerous. It is also thought that the development of Windows IoT must be based on the Windows 10 platform, and the actual testing found that, on the Windows 8.1 version, program development and online debugging can still be done using the visual Studio version of RC.

First, the development platform preparation

(1), install Visual Studio RC or install only Windows 10 development tools

Download Link: https://dev.windows.com/en-US/downloads/install-dev-tools-visual-studio-2015

If you have already installed VisualStudio 2015, you can install only universal Windows App development tools.

(2), install the windowsdeveloperprogramforiot.msi Tool, the tool in the Raspberry Pi Windows image download package. This step does not seem necessary, and the actual test finds that the program does not open correctly either in Windows 8 or windows .

(3), Raspberry Pi 2 (already running Windows IoT) and LED light related components

(4), ensure the system is "headed" mode


can be modified by instruction Setbootoption.exeheadless or Setbootoption.exe headed instructions, after modification, to restart the system.

Headed support interface display, headless not supported (Gateway mode).

( 5 ), Download the program sample ( LED Light flashing example)

Https://github.com/ms-iot/samples/tree/develop/Blinky

Second, the program debugging

(1) Raspberry Pi 2 to connect to your debug PC via a network cable (guaranteed in one segment)

(2) Since the GPIO controlled in the program is 5, the LED lamp should be connected to the Gpio 5 (29Pin) on this pin.

(3) Open the downloaded sample program and make the following configuration

The device is set to "remote computer", you can fill in the machine name, or you can fill in the IP address directly.

(4) Click the Run button to run the debugging

Supports breakpoints, and single-step debugging.

(5) Actual operation effect

If all goes well, you can see that the LED lights flash out and the circle on the display screen flashes simultaneously (turns white or turns red).


Third, the matters needing attention

(1), you need to register as a developer (with the same development rights as the real Windows Phone device).


Otherwise, you will get the above prompt, and you will get the deployment error: "Error: DEP0100: The developer licensing issue caused the deployment to fail. ”

(2), the first deployment time, will be slower, will deploy some necessary library to the device, as shown in:


Iv. references

(1), configure your PC

Http://ms-iot.github.io/content/win10/SetupPC.htm

(2), hardware preparation and program debugging

Http://ms-iot.github.io/content/win10/samples/Blinky.htm

V. Summary

(1), in addition to Gpio Microsoft also provides a lot of examples such as I2C,SPI for us to study, as shown in:


The "Iotcoredefaultapp" is an app that comes with the Raspberry Pi system by default. This is just a generic application development, and general-purpose drive development is worth studying.

(2), the use of visual stdio tools for development, support breakpoints and single-step debugging, user development experience is excellent.

(3), this is just a start, I believe that Windows IoT-related devices, the development of more space.

(4), follow-up time, will continue to write some and the Windows IoT development related articles.

"Window IoT-2" led flashing and animated (Raspberry Pi Pi2)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.