395 Commits

Author SHA1 Message Date
Gordon Williams
42cd8f61e9 Add seaLevelPressure to Bangle.setOptions (fix #2213) 2022-06-06 15:39:38 +01:00
storm64
1fee1b2045 [Bangle.setUI] Change to clock property
Feature added to Bangle.setUI reference.
@gfwilliams please update the .min.js-files,
2022-05-24 07:39:06 +02:00
Gordon Williams
2cd16032c3 Bangle.js2: E.showMenu now returns 'scroller', format is called with a second argument, font in popup is scaled to fit (fix #2190) 2022-05-06 08:52:47 +01:00
Gordon Williams
0480d93a89 fix build regressions 2022-05-05 13:45:54 +01:00
Gordon Williams
478b28d080 nRF5x: Allow 'high speed' watches via 'hispeed' argument to setWatch. Higher power consumption but detects fast (<25us) pulses. 2022-05-05 12:01:19 +01:00
Gordon Williams
f772bd5106 Graphics: g.setClipRect now uses rotated coordinates
Graphics: g.draw/fillCircle now works with rotated coordinates
            Bangle.js2: Touch/drag coordinates now obey g.setRotation
2022-05-03 13:14:25 +01:00
Gordon Williams
aa6009b0d1 Bangle.js2: Allow variable HRM poll rates on Bangle.js 2 VC31B variant
Bangle.js2: VC31 HRM variant now polls at 25hz (not 50)
2022-04-22 11:35:33 +01:00
Gordon Williams
b01e9d814a fix build after https://github.com/espruino/Espruino/pull/2180 2022-04-19 15:09:44 +01:00
Gordon Williams
ffaeeb33d0 Merge branch 'master' of github.com:espruino/Espruino 2022-04-19 15:04:41 +01:00
BartS23
1ace43eb16 Parameter 2 specified. 2022-04-10 11:44:08 +02:00
BartS23
f5c875364a Add missing "code"-close 2022-04-10 11:34:43 +02:00
BartS23
7b038d6ba0 document up/down swipe 2022-04-10 11:24:47 +02:00
Gordon Williams
91d9f73939 new default firmware 2022-04-06 15:55:50 +01:00
Gordon Williams
ffeb90de6f touch docs for http://forum.espruino.com/conversations/374038 2022-03-21 11:35:25 +00:00
Gordon Williams
d1f2ed061f Bangle.js: If home button held and JS is still executing, force a break (like Ctrl-C) 2022-03-10 09:51:50 +00:00
Gordon Williams
5942073e9f Bangle.js2: Battery discharge curve is now scaled better, and setting.json:batFullVoltage can be used to account for differences in sense voltage between devices 2022-03-08 10:04:52 +00:00
Gordon Williams
8861b27954 Util Timer now runs independently of system time. More accurate on nRF52 (fix #2125)
Also remove (mostly) duplicated jshPinPulse
2022-03-03 16:43:00 +00:00
Gordon Williams
ba7ec5b918 WIP - first stab at fixing nRF52 timer accuracy issue - more reliable now but pulse trains still can be off, and PWM broken 2022-03-02 17:04:46 +00:00
Gordon Williams
95ea8838ff Bangle.js1: Add 'back' option to E.showScroller and Bangle.setUI
Bangle.js1: setUI button handlers now work on falling edge
            Bangle.js: Add setUI custom 'swipe' handler
2022-03-02 15:41:41 +00:00
Gordon Williams
f148c73731 Bangle.js1: Fix regression that caused setLCDMode not to work in 2v12 (fix #2155) 2022-02-25 12:06:11 +00:00
Gordon Williams
f7c9af747e Bangle.js2: 'touch' event coordinates are now clipped to screen coordinates (drag stay unclipped to allow touchscreen use for scrolling) 2022-02-25 08:43:56 +00:00
Gordon Williams
7610732d7c Bangle.js2: Ensure that if Bangle.getPressure errors, the next call doesn't say 'Conversion in progress' 2022-02-23 08:51:50 +00:00
Gordon Williams
6206534fae Bangle.js2: Add 'back' option to E.showScroller and Bangle.setUI 2022-02-22 14:23:12 +00:00
Gordon Williams
78ee733bc9 Add E.showMenu({"":{back:function}, ...}) for easy specification of 'back' menu item 2022-02-22 13:37:43 +00:00
Gordon Williams
2ec19bccfb Ensure showscroller on Bangle.js 1 honours options.scroll (#2156) 2022-02-21 16:42:54 +00:00
Gordon Williams
3064ca5653 fix accidental commit 2022-02-11 11:00:31 +00:00
Gordon Williams
eaaf2814ec Add Bangle.midnight event that can be used for housekeeping tasks 2022-02-11 10:05:09 +00:00
Gordon Williams
ff25ff80df Bangle.setUI is now minified, also calls Bangle.uiRemove if it was set (to clean up custom UI additions)
E.showScroller tweaks to allow redraw requests, get/set initial scroll amount, negative scroll (for titles)
2022-02-09 14:12:47 +00:00
Gordon Williams
4f20f88d9e fix boot screen font 2022-02-04 10:23:52 +00:00
Gordon Williams
6d83581e31 2v12 release 2022-02-01 15:16:26 +00:00
Gordon Williams
79c2a6eb5d Bangle.js2: If errors do happen during Bangle.getPressure, reject the promise (fix #2137) 2022-02-01 14:44:17 +00:00
Gordon Williams
e294a06c2f Bump BMP280 timeout to 1s to avoid intermittent errors on some devices 2022-01-31 16:48:41 +00:00
Gordon Williams
4a7d30f4be Bangle.js: Add 'graphicsInternal' to make Graphics independent of JS vars. Terminal is now useful earlier, and can display softdevice errors 2022-01-31 16:35:38 +00:00
Gordon Williams
3805f76da0 docs 2022-01-31 09:47:33 +00:00
Gordon Williams
3e361413db Fix build if using non-BMP280 pressure sensor 2022-01-28 11:02:56 +00:00
Gordon Williams
856e425080 Fix Bangle.js 2 barometer regression - #if ..!=0 not working as expected 2022-01-26 15:08:20 +00:00
Gordon Williams
5e2bf55d6a Bangle.js2: Increase wait after power-on for BMP280 to fix getPressure on some devices (fix #2120) 2022-01-26 08:44:39 +00:00
Gordon Williams
6c011ed7f8 fix build errors for non-BMP280 devices 2022-01-25 15:12:01 +00:00
Gordon Williams
017da1459b update 'factory default' apps 2022-01-25 10:19:42 +00:00
Gordon Williams
407dd17e09 significantly improved beat detection using peak finding *and* zero crossing 2022-01-24 15:41:32 +00:00
Gordon Williams
cdd79e3bef Bangle.js: Support for v2.1 HRM hardware (VC31 vs VC31B)
Bangle.js: Better HRM detection (higher res filtering, better peak detection, lower median filter size, better confidence)
2022-01-20 21:19:53 +00:00
Gordon Williams
a31ff2129c Support foBangle.js: Support for v2.1 barometer hardware (SPL06 vs BMP280)Bangle.js: Support for v2.1 barometer hardware (SPL06 vs BMP280) 2022-01-19 13:17:53 +00:00
Gordon Williams
bae246f6b5 Bangle.js2: Only handle UBX protocol from GPS on Bangle.js 1 as it interfeBangle.js2: Only handle UBX protocol from GPS on Bangle.js 1 as it interferes with CASIC on Bangle.js 2 (fix #2124)
Bangle.js: GPS-raw no longer sets the FIFO_FULL message if data is lost - just passes a bool as the second argumentres with CASIC on Bangle.js 2 (fix #2124)
2022-01-11 14:41:56 +00:00
Gordon Williams
32a4a5842d docs fix for https://github.com/espruino/EspruinoDocs/pull/626 2022-01-11 09:31:37 +00:00
Gordon Williams
941780c28f Bangle.js: Ensure Bangle.setLCDPower only fires lcdPower event if state has changed (fix https://github.com/espruino/BangleApps/issues/1138) 2022-01-11 09:15:08 +00:00
Gordon Williams
dd1ee498eb Bangle.js: Attempt to fix occasional issue where vibration gets stuck on (fix https://github.com/espruino/BangleApps/issues/1249) 2022-01-10 14:00:22 +00:00
Gordon Williams
ec06ad5b6c Bangle.js: Attempt to fix Bangle.buzz that occasionally doesn't stop 2022-01-06 11:30:07 +00:00
Gordon Williams
e3514be69d Bangle.js: Ensure Bangle.getHealthStatus("day") resets at midnight (fix https://github.com/espruino/BangleApps/issues/1216) 2022-01-06 10:04:53 +00:00
Gordon Williams
5310808580 2v11 release 2021-12-15 15:05:38 +00:00
Gordon Williams
c09de7bc3a Bangle.js: Add Bangle.getHealthStatus("day") to allow automatic step counts for the current day 2021-12-14 17:04:02 +00:00