Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Master #486

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BusTools/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: "IoT Bus tools to interact with Gpio, I2c, Pwm, Spi and UART."
---

Expand Down
1 change: 1 addition & 0 deletions Demos/AirHockeyRobot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: "IoT Bus tools to interact with Gpio, I2c, Spi and UART."
---

Expand Down
1 change: 1 addition & 0 deletions Demos/BuildingNavigationRobot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Building a navigation robot.
---

Expand Down
1 change: 1 addition & 0 deletions Demos/Facial-Recognition-Door/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Building a facial recognition door.
---

Expand Down
1 change: 1 addition & 0 deletions Demos/GoPiGoXbox/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: "Working with the GoPiGoXbox sample."
---

Expand Down
1 change: 1 addition & 0 deletions Demos/Kegocnizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Building an IoT beer device that dispenses to authorized users.
---

Expand Down
1 change: 1 addition & 0 deletions Demos/PetDoor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: Building a pet recognition door.
---

Expand Down
1 change: 1 addition & 0 deletions Demos/PlantSensor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Building a plant sensor.
---

Expand Down
1 change: 1 addition & 0 deletions Demos/RaspberryCoffee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Building a coffee maker that is controllable with your phone.
---

Expand Down
1 change: 1 addition & 0 deletions Drivers/VirtualPWM/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: This is a Windows Universal Driver sample for PWM that implements the PWM DDI.
---

Expand Down
1 change: 1 addition & 0 deletions Drivers/WaveshareFilterKmdf/WaveshareFilterKmdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ languages:
- csharp
products:
- windows
- windows-iot
---

# Waveshare KMDF Filter Driver
Expand Down
1 change: 1 addition & 0 deletions Samples/Accelerometer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Create a simple app with an SPI accelerometer build with Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/AppServiceBlinky/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: Create a simple Blinky app service and connect a LED to your Windows IoT Core device.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/AppServiceSharedNotepad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Create a simple notepad app service as well as two simple app service clients for Windows 10 IoT Core.
---

Expand Down
5 changes: 3 additions & 2 deletions Samples/Azure/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
page_type: sample
urlFragment: iot-azure-samples
languages:
- csharp
- csharp
products:
- windows
- windows
- windows-iot
description: Test out different Azure samples.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/AzureTPMDeviceTest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ languages:
- NET
products:
- windows
- windows-iot
description: Connect TPM with the Azure IoT Hub with Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/CognitiveServicesExample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Create a UWP app that identifies faces in a photo and determine the emotions in those photos using Microsoft's Cognitive Services API and Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/CompanionApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: This sample is intended to show how to remotely configure an Windows 10 IoT Core device when it is not attached to a network.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/ContainerWebSocket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: This sample is designed to work with Windows containers on Windows IoT Core and Windows IoT Enterprise.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/CustomDeviceAccessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: This sample shows how to access devices from UWP applications using familiar win32 APIs like CreateFile(), ReadFile(), WriteFile(), and DeviceIoControl() with Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/DeviceIOController/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: Sample for leveraging Device IO Controller.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/DigitalSign/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: This sample showcases a Digital Sign UWP running on Windows IoT Core.
---

Expand Down
5 changes: 3 additions & 2 deletions Samples/EdgeModules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
page_type: sample
urlFragment: edge-modules
languages:
- csharp
- csharp
products:
- windows
- windows
- windows-iot
description: Learn how to leverage sample modules to demonstrate the various features of Azure IoT Edge on Windows.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/ExternalProcessLauncher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: We'll learn how to launch an external process (exe) from a Universal Windows Platform (UWP) app using the Windows.System.ProcessLauncher API with Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/FlowVolume/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: This sample demonstrates how to use a relatively inexpensive device and a Raspberry Pi to measure the volume of liquid flowing through a hose.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/ForegroundAppWithBackgroundApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: An example of building a foreground app and background app within the same APPX file for Windows 10 IoT Core.
---

Expand Down
10 changes: 5 additions & 5 deletions Samples/GpioOneWire/CPP/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ consider bits to be 1s, while we will consider pulses shorter
than this threshold to be 0s. We convert 110 microseconds to
QueryPerformanceCounter (QPC) units to be used later.

```csharp
```cpp
HRESULT GpioOneWire::Dht11::Sample (GpioOneWire::Dht11Reading& Reading)
{
Reading = Dht11Reading();
Expand All @@ -86,7 +86,7 @@ is normally pulled high while the device is idle, and we must pull it low
for 18 milliseconds to request a sample. We latch a low value to the pin
and set it as an output, driving the GPIO pin low.

```csharp
```cpp
// Latch low value onto pin
this->pin->Write(GpioPinValue::Low);

Expand All @@ -100,7 +100,7 @@ and set it as an output, driving the GPIO pin low.
We then revert the pin to an input which causes it to go high, and wait for
the DHT11 to pull the pin low, then high again.

```csharp
```cpp
// Set pin back to input
this->pin->SetDriveMode(this->inputDriveMode);

Expand Down Expand Up @@ -129,7 +129,7 @@ After receiving the first rising edge, we catch all of the falling edges
and measure the time difference between them to determine whether the bit
is a 0 or 1.

```csharp
```cpp
LARGE_INTEGER prevTime = { 0 };

const ULONG sampleTimeoutMillis = 10;
Expand Down Expand Up @@ -167,7 +167,7 @@ After all bits have been received, we validate the checksum to make sure the
received data is valid. The data is returned through the `Reading` reference
parameter.

```csharp
```cpp
if (!Reading.IsValid()) {
// checksum mismatch
return HRESULT_FROM_WIN32(ERROR_INVALID_DATA);
Expand Down
17 changes: 9 additions & 8 deletions Samples/GpioOneWire/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ languages:
- cpp
products:
- windows
description: This sample shows how to read from the DHT11 from a Universal Windows Application for Windows 10 IoT Core.
- windows-iot
description: "This sample shows how to read from the DHT11 from a Universal Windows Application for Windows 10 IoT Core."
---

# GPIO OneWire DHT11/22 reader

These are the available versions of this Windows 10 IoT Core sample:

* [C++](./CPP/ReadMe.md)
* [C++](./CPP/ReadMe.md)

| Minimum SDK Version | 15063 |
|---------------------|-------|
Expand Down Expand Up @@ -40,7 +41,7 @@ base of the transistor.
![Schematic](../../Resources/images/GpioOneWire/schematic.png)


# GPIO OneWire DHT11 reader
## GPIO OneWire DHT11 reader

Note what follows below is a bit out of date- the latest version on Github is a 2 wire operation requiring pin4 as input and pin 5 as output.

Expand Down Expand Up @@ -107,7 +108,7 @@ consider bits to be 1s, while we will consider pulses shorter
than this threshold to be 0s. We convert 110 microseconds to
QueryPerformanceCounter (QPC) units to be used later.

```csharp
```cpp
HRESULT GpioOneWire::Dht11::Sample (GpioOneWire::Dht11Reading& Reading)
{
Reading = Dht11Reading();
Expand All @@ -128,7 +129,7 @@ is normally pulled high while the device is idle, and we must pull it low
for 18 milliseconds to request a sample. We latch a low value to the pin
and set it as an output, driving the GPIO pin low.

```csharp
```cpp
// Latch low value onto pin
this->pin->Write(GpioPinValue::Low);

Expand All @@ -142,7 +143,7 @@ and set it as an output, driving the GPIO pin low.
We then revert the pin to an input which causes it to go high, and wait for
the DHT11 to pull the pin low, then high again.

```csharp
```cpp
// Set pin back to input
this->pin->SetDriveMode(this->inputDriveMode);

Expand Down Expand Up @@ -171,7 +172,7 @@ After receiving the first rising edge, we catch all of the falling edges
and measure the time difference between them to determine whether the bit
is a 0 or 1.

```csharp
```cpp
LARGE_INTEGER prevTime = { 0 };

const ULONG sampleTimeoutMillis = 10;
Expand Down Expand Up @@ -209,7 +210,7 @@ After all bits have been received, we validate the checksum to make sure the
received data is valid. The data is returned through the `Reading` reference
parameter.

```csharp
```cpp
if (!Reading.IsValid()) {
// checksum mismatch
return HRESULT_FROM_WIN32(ERROR_INVALID_DATA);
Expand Down
1 change: 1 addition & 0 deletions Samples/Gpiokmdfdemo/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: Create a simple GPIO demo.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/HelloBlinky/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ languages:
- cpp
products:
- windows
- windows-iot
description: A sample that shows how to make an LED attached to a GPIO pin blink on and off for Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/HelloBlinkyBackground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ languages:
- vb
products:
- windows
- windows-iot
description: A sample that shows how to make an LED attached to a GPIO pin blink on and off from a background service for Windows 10 IoT Core.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/HelloCloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Create a hello cloud sample with Windows 10 IoT Core and Azure.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/HelloCloudHeadless/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Create a headless hello cloud sample with Windows 10 IoT Core and Azure.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/HelloWorld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: Create and deploy your first Windows 10 IoT Core app.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/I2CCompass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: This sample uses I2C on Windows 10 IoT Core to communicate with an HMC5883L Magnetometer device.
---

Expand Down
1 change: 1 addition & 0 deletions Samples/I2cPortExpander/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ languages:
- csharp
products:
- windows
- windows-iot
description: A sample that shows how to use a port expander to read the status of a tactile switch and control an LED for Windows 10 IoT Core.
---

Expand Down
Loading