Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

Return ambient pressure in kPa, or 0 if not supported on current platform.

Example

Example 1: Log current ambient pressure in all three units

(log-status "P [mBar]:" (float->choppedstring (pressure-mBar) 4) " P [mmHg]:" (float->choppedstring (pressure-mmHg) 4) 
            " P [kPa]:" (float->choppedstring (pressure-kPa) 4))
Clone this wiki locally