SenseHAT
Connect and interact with SenseHAT add-on on Raspberry Pi® hardware
Access SenseHAT sensors, LED matrix, and joystick to collect environmental data and control outputs on Raspberry Pi hardware. Configure SenseHAT blocks and MATLAB® functions to read sensor values, display information, and respond to inputs from joystick for application-based examples.
Blocks
| HTS221 Humidity Sensor | Measure relative humidity and ambient temperature from Humidity sensor |
| LPS25h Pressure Sensor | Measure barometric air pressure and ambient temperature |
| LSM9DS1 IMU Sensor | Measure linear acceleration, angular rate and magnetic field along X, Y, and Z axes |
| Joystick | Read the state of five-position Joystick |
| 8x8 RGB LED Matrix | Control pixel(s) color of 8x8 RGB LED Matrix |
Objects
sensehat | Create a Sense HAT object passing raspi object |
Functions
readHumidity | Read the humidity value from the Humidity sensor |
readPressure | Read the pressure value from the air pressure sensor |
readTemperature | Read the temperature value from the Humidity sensor or the air pressure sensor |
readAngularVelocity | Read angular velocity measured by the gyroscope along x, y, and z axes |
readAcceleration | Read acceleration measured by the Accelerometer along x, y, and z axes |
readMagneticField | Read the magnetic field measured by the Magnetometer along the x, y and z axis |
readJoystick | Read the status of the joystick |
displayImage | Display an image on the Raspberry Pi hardware or on the LED Matrix of SenseHAT |
writePixel | Write the specified color to an individual pixel at the specified row and column of LED Matrix |
clearLEDMatrix | Clears the entire LED matrix and sets the all the pixels to blank ([0, 0, 0]) |
displayMessage | Scrolls a text message across the LED Matrix |
enableSensor | Enable sensors available on the Sense HAT to read values |
disableSensor | Disable sensors available on the Sense HAT |









