Pressure sensor setup
Prerequisites
Windows standard APIs: FromIdAsync(String), GetCurrentReading(), GetDefault(), and GetDeviceSelector(Guid interfaceId) are
used for accessing the sensor. For details, go to
https://docs.microsoft.com/en-us/uwp/api/windows.devices.sensors.custom?
.
About this task
The DPS310 pressure sensor is connected to I2C bus 2 of the EGW-3200. This sensor is detected as a barometer sensor and
follows Windows sensor framework.
See the
Humidity and temperature sensor setup
on page 33 section for the following tasks:
●
●
●
●
Run the pressure sensor application
About this task
Two events are registered for the application: DataEvents and Polling.
Steps
1. Select
DataEvents
>
Enable
. The
Pressure
value is displayed in hectopascals.
2. Select
DataEvents
>
Disable
and follow Step 1 to obtain the next set of readings.
Figure 42. DataEvents
3. Select
Polling
>
Get Data
and repeat Steps 1 and 2.
44
Setting Up the Windows 10 Operating System