SensorHub Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SensorHub
public sealed class SensorHub
type SensorHub = class
Public NotInheritable Class SensorHub
- Inheritance
-
SensorHub
Constructors
SensorHub(I2cDevice) |
Initializes a new instance of the SensorHub class. |
Fields
DefaultI2cAddress |
Default I2C address |
Properties
IsMotionDetected |
Is motion detected by the on board sensor |
Methods
TryReadBarometerPressure(Pressure) |
Try to read pressure from sensor. |
TryReadBarometerTemperature(Temperature) |
Try to read the temperature from the barometer sensor. |
TryReadIlluminance(Illuminance) |
Try to read illuminance from sensor. |
TryReadOffBoardTemperature(Temperature) |
Try to read the temperature from the off board thermometer. |
TryReadOnBoardTemperature(Temperature) |
Try to read temperature from on board sensor |
TryReadRelativeHumidity(RelativeHumidity) |
Try to read relative humidity from sensor. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for