Read the pressure value from the Air Pressure sensor
You can read pressure from the Air Pressure sensor.
ans = 9.1102e+04
Read the pressure from the Air Pressure sensor.
mysh — Connection to SenseHAT
Connection to a SenseHAT board, specified as a sensehat object.
pressure — air pressure
The pressure value read from the Air pressure sensor. The output of this method is double and the unit of measurement for the pressure is Pascal (Pa).
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
You can also deploy
readPressureon the Raspberry Pi™ hardware in MATLAB® Online™.
Introduced in R2016b