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
PixelARRAY [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.
xUpdatePixelBOOLTRUE
Update Pixel Output: default TRUE
xUpdateJoystickBOOLTRUE
Update Joystick Input: default TRUE
xUpdateLSM9DS1BOOLTRUE
Update LSM9DS1 Input: default TRUE
xUpdateHTS221BOOLTRUE
Update HTS221 Input: default TRUE
xUpdateLPS25HBOOLTRUE
Update LPS25H Input: default TRUE
Output
xJoystickUpBOOLFALSE
Joystick input interpretated in senses of the given booleans
xJoystickDownBOOLFALSE
xJoystickLeftBOOLFALSE
xJoystickRightBOOLFALSE
xJoystickEnterBOOLFALSE
TemperatureHTS221REALTemperature of HTS221 in degree celcius (°C).
HumidityREALHumidity of HTS221 in percent of 100 (%).
TemperatureLPS25HREALTemperature of LPS25H in degree celcius (°C).
PressureLREALPressure of LPS25H in hecto pascal (hPA).
GyroXREALGyroscope X direction data of LSM9DS1 (dps - degree per second)
GyroYREALGyroscope Y direction data of LSM9DS1 (dps - degree per second)
GyroZREALGyroscope Z direction data of LSM9DS1 (dps - degree per second)
AccelXREALAcceleration X direction data of LSM9DS1 (G ~ 9,81 m/s^2)
AccelYREALAcceleration Y direction data of LSM9DS1 (G ~ 9,81 m/s^2)
AccelZREALAcceleration Z direction data of LSM9DS1 (G ~ 9,81 m/s^2)
CompXREALCompass X direction data of LSM9DS1 (microTesla)
CompYREALCompass Y direction data of LSM9DS1 (microTesla)
CompZREALCompass Z direction data of LSM9DS1 (microTesla)
Properties:
Methods:
Structure: