Merge pull request #116 from shijiong/patch-5

Update broken URLs
This commit is contained in:
Sara 2018-03-21 14:06:13 -07:00 коммит произвёл GitHub
Родитель 43bd8c7517 1a4f3cc5ae
Коммит d88c3c05fa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -1,8 +1,8 @@
# “Hello, blinky!”
# “Hello, blinky!”
Well create a simple LED blinking app and connect a LED to your Windows 10 IoT Core device.
Well 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](/en-us/windows/iot/Docs/HeadlessMode).
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](https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/headlessmode).
Also, be aware that the GPIO APIs are only available on Windows 10 IoT Core, so this sample cannot run on your desktop.
@ -14,7 +14,7 @@ Also, be aware that the GPIO APIs are only available on Windows 10 IoT Core, so
* * *
Youll need a few components:
Youll need a few components:
* a LED (any color you like)
@ -76,13 +76,13 @@ Finally, the LED_PIN variable of _MainPage.xaml.cs_ file of the sample code will
* * *
1. With the application open in Visual Studio, set the architecture in the toolbar dropdown. If youre building for MinnowBoard Max, select `x86`. If youre building for Raspberry Pi 2 or 3 or the DragonBoard, select `ARM`.
1. With the application open in Visual Studio, set the architecture in the toolbar dropdown. If youre building for MinnowBoard Max, select `x86`. If youre building for Raspberry Pi 2 or 3 or the DragonBoard, select `ARM`.
2. Next, in the Visual Studio toolbar, click on the `Local Machine` dropdown and select `Remote Machine`
![RemoteMachine Target](https://az835927.vo.msecnd.net/sites/iot/Resources/images/AppDeployment/cs-remote-machine-debugging.png)
3. At this point, Visual Studio will present the **Remote Connections** dialog. If you previously used [PowerShell](/en-us/windows/iot/Docs/PowerShell) to set a unique name for your device, you can enter it here (in this example, were using **my-device**). Otherwise, use the IP address of your Windows IoT Core device. After entering the device name/IP select `Universal` for Windows Authentication, then click **Select**.
3. At this point, Visual Studio will present the **Remote Connections** dialog. If you previously used [PowerShell](https://docs.microsoft.com/en-us/windows/iot-core/connect-your-device/powershell) to set a unique name for your device, you can enter it here (in this example, were using **my-device**). Otherwise, use the IP address of your Windows IoT Core device. After entering the device name/IP select `Universal` for Windows Authentication, then click **Select**.
![Remote Machine Debugging](https://az835927.vo.msecnd.net/sites/iot/Resources/images/AppDeployment/cs-remote-connections.PNG)
@ -96,11 +96,11 @@ When everything is set up, you should be able to press F5 from Visual Studio. If
Congratulations! You controlled one of the GPIO pins on your Windows IoT device.
## Lets look at the code
## Lets look at the code
* * *
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.
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.
### Timer code
@ -161,7 +161,7 @@ To drive the GPIO pin, first we need to initialize it. Here is the C++ code (not
GpioStatus->Text = "GPIO pin initialized correctly.";
}
Lets break this down a little:
Lets break this down a little:
* First, we use `GpioController::GetDefault()` to get the GPIO controller.
@ -175,7 +175,7 @@ Let
### Modify the state of the GPIO pin
Once we have access to the `GpioOutputPin` instance, its trivial to change the state of the pin to turn the LED on or off.
Once we have access to the `GpioOutputPin` instance, its 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: