SenseHat (FB)¶
FUNCTION_BLOCK SenseHat EXTENDS i2c
This Function Block is instanciated along with the Sense Hat device of the raspberry PI. It’s inputs and outputs allow to easily access the sensors, inputs and LED outputs of the Sense Hat Device.
- InOut:
Scope
Name
Type
Initial
Comment
Input
Pixel
ARRAY [0..63] OF DWORD
Pixel array for LED-Output of Sensehat (0..7 Row 1, 8..17 Row 2, etc.). Use 32Bit ARGB color coding to set the color of each pixel.
xUpdatePixel
BOOL
TRUE
Update Pixel Output: default TRUE
xUpdateJoystick
BOOL
TRUE
Update Joystick Input: default TRUE
xUpdateLSM9DS1
BOOL
TRUE
Update LSM9DS1 Input: default TRUE
xUpdateHTS221
BOOL
TRUE
Update HTS221 Input: default TRUE
xUpdateLPS25H
BOOL
TRUE
Update LPS25H Input: default TRUE
Output
xJoystickUp
BOOL
FALSE
Joystick input interpretated in senses of the given booleans
xJoystickDown
BOOL
FALSE
xJoystickLeft
BOOL
FALSE
xJoystickRight
BOOL
FALSE
xJoystickEnter
BOOL
FALSE
TemperatureHTS221
REAL
Temperature of HTS221 in degree celcius (°C).
Humidity
REAL
Humidity of HTS221 in percent of 100 (%).
TemperatureLPS25H
REAL
Temperature of LPS25H in degree celcius (°C).
Pressure
LREAL
Pressure of LPS25H in hecto pascal (hPA).
GyroX
REAL
Gyroscope X direction data of LSM9DS1 (dps - degree per second)
GyroY
REAL
Gyroscope Y direction data of LSM9DS1 (dps - degree per second)
GyroZ
REAL
Gyroscope Z direction data of LSM9DS1 (dps - degree per second)
AccelX
REAL
Acceleration X direction data of LSM9DS1 (G ~ 9,81 m/s^2)
AccelY
REAL
Acceleration Y direction data of LSM9DS1 (G ~ 9,81 m/s^2)
AccelZ
REAL
Acceleration Z direction data of LSM9DS1 (G ~ 9,81 m/s^2)
CompX
REAL
Compass X direction data of LSM9DS1 (microTesla)
CompY
REAL
Compass Y direction data of LSM9DS1 (microTesla)
CompZ
REAL
Compass Z direction data of LSM9DS1 (microTesla)
Properties:
Methods:
Structure: