SenseHat 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.
SenseHAT
public class SenseHat : IDisposable
[System.Device.Model.Interface("SenseHAT")]
public class SenseHat : IDisposable
type SenseHat = class
interface IDisposable
[<System.Device.Model.Interface("SenseHAT")>]
type SenseHat = class
interface IDisposable
Public Class SenseHat
Implements IDisposable
- Inheritance
-
SenseHat
- Attributes
- Implements
Constructors
SenseHat() |
Constructs SenseHat instance |
SenseHat(I2cBus, Boolean) |
Constructs SenseHat instance |
Fields
DefaultI2cBusId |
Default I2C bus id |
Properties
Acceleration |
Gets acceleration from the gyroscope |
AngularRate |
Gets angular rate from the gyroscope |
Gyroscope |
Gyroscope |
HoldingButton |
Is Joystick button being held |
HoldingDown |
Is Joystick being held down |
HoldingLeft |
Is Joystick being held left |
HoldingRight |
Is Joystick being held right |
HoldingUp |
Is Joystick being held up |
Humidity |
Gets humidity from temperature and humidity sensor |
Joystick |
Joystick |
LedMatrix |
LED Matrix |
MagneticInduction |
Gets magnetic induction from the magnetometer |
Magnetometer |
Magnetometer |
Pressure |
Gets pressure from pressure and temperature sensor |
PressureAndTemperature |
Pressure and temperature sensor |
Temperature |
Gets temperature from temperature and humidity sensor |
Temperature2 |
Gets temperature from pressure and temperature sensor |
TemperatureAndHumidity |
Temperature and humidity sensor |
Methods
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Fill(Color) |
Fills LED matrix with specified color |
ReadJoystickState() |
Reads joystick state |
SetPixel(Int32, Int32, Color) |
Sets color on specified pixel on LED matrix |
Write(ReadOnlySpan<Color>) |
Write colors to LED matrix |