Skip to content

Commit 2b136d9

Browse files
committed
docs
1 parent 38549ab commit 2b136d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libs/banglejs/jswrap_bangle.c

+5-4
Original file line numberDiff line numberDiff line change
@@ -2720,8 +2720,7 @@ call `E.kickWatchdog()` from your code or the watch will reset after ~5 seconds.
27202720
* `hrmGreenAdjust` - (Bangle.js 2, 2v19+) if false (default is true) the green LED intensity won't be adjusted to get the HRM sensor 'exposure' correct. This is reset when the HRM is initialised with `Bangle.setHRMPower`.
27212721
* `hrmWearDetect` - (Bangle.js 2, 2v19+) if false (default is true) HRM readings won't be turned off if the watch isn't on your arm (based on HRM proximity sensor). This is reset when the HRM is initialised with `Bangle.setHRMPower`.
27222722
* `hrmPushEnv` - (Bangle.js 2, 2v19+) if true (default is false) HRM environment readings will be produced as `Bangle.on(`HRM-env`, ...)` events. This is reset when the HRM is initialised with `Bangle.setHRMPower`.
2723-
* `seaLevelPressure` (Bangle.js 2) Normally 1013.25 millibars - this is used for
2724-
calculating altitude with the pressure sensor
2723+
* `seaLevelPressure` (Bangle.js 2) Default 1013.25 millibars - this is used when calculating altitude from pressure sensor values from `Bangle.getPressure`/`pressure` events.
27252724
* `lcdBufferPtr` (Bangle.js 2 2v21+) Return a pointer to the first pixel of the 3 bit graphics buffer used by Bangle.js for the screen (stride = 178 bytes)
27262725
* `lcdDoubleRefresh` (Bangle.js 2 2v22+) If enabled, pulses EXTCOMIN twice per poll interval (avoids off-axis flicker)
27272726
@@ -5171,13 +5170,15 @@ void jswrap_banglejs_ioWr(JsVarInt mask, bool on) {
51715170
"typescript" : "getPressure(): Promise<PressureData> | undefined;"
51725171
}
51735172
Read temperature, pressure and altitude data. A promise is returned which will
5174-
be resolved with `{temperature, pressure, altitude}`.
5173+
be resolved with `{temperature (C), pressure (hPa), altitude (meters)}`.
51755174
51765175
If the Barometer has been turned on with `Bangle.setBarometerPower` then this
51775176
will return with the *next* reading as of 2v21 (or the existing reading on 2v20 or earlier). If the Barometer is off,
51785177
conversions take between 500-750ms.
51795178
5180-
Altitude assumes a sea-level pressure of 1013.25 hPa
5179+
Altitude assumes a sea-level pressure of 1013.25 hPa, but this cal be adjusted with
5180+
a call to `Bangle.setOptions({ seaLevelPressure : 1013.25 })` - the Bangle.js Settings
5181+
app contains a tool to adjust it.
51815182
51825183
If there's no pressure device (for example, the emulator),
51835184
this returns `undefined`, rather than a Promise.

0 commit comments

Comments
 (0)