397 Commits

Author SHA1 Message Date
Gordon Williams
138452fb65 Merging Dickens-specific changes into master 2023-09-27 14:57:47 +01:00
Eduardo Lima
3181bb62ae Fix BangleJS debug builds failing on bogus assert call
An assert with a bogus/outdated condition is failing debug builds for
BangleJS. This patch fixes the condition by checking against
`IOEvent->flags` field instead.
2023-09-15 11:43:56 +02:00
Gordon Williams
9b6ea32e04 Updated factory firmware 2023-09-08 10:36:28 +01:00
Gordon Williams
a4ffbdc7c5 Bangle.js: If screen is rotated, also rotate accelerometer and magnetometer values
Fixes https://github.com/espruino/BangleApps/pull/2999
2023-09-08 10:19:34 +01:00
Gordon Williams
71bcd42a40 Updated default Bangle.js firmware, removed duplicate sched entries 2023-08-07 11:56:40 +01:00
Rob Pilling
23adac3a18 Add setLCDOverlay() clearing typescript overload 2023-08-03 18:16:32 +01:00
Gordon Williams
5cfde78b90 Bangle.js: Handle pushing events via the event queue (allows events to be queued rather than lost)
Bangle.js2: Allow HRM environment sensor data to be pushed, also add flags for disabling auto exposure and wear detect
2023-07-31 15:30:50 +01:00
Gordon Williams
c0e3f125a2 Support for Overlays when SPILCD driver used
Bangle.js2: Show a message on screen when compacting storage (fix #2391)
2023-07-24 16:16:41 +01:00
Gordon Williams
4e3f9fba88 Now apply calibration to GMC303 magnetometer 2023-07-14 16:34:33 +01:00
Gordon Williams
72d034c606 Added some sanity checking for max/min - it won't completely fix things but will stop the magnetometer getting completely out of range. 2023-07-14 16:32:44 +01:00
Gordon Williams
31bf6cfac0 fix code example 2023-07-14 08:15:28 +01:00
Gordon Williams
ad569fd8fb
Fix merge issue, and docs 2023-07-03 11:05:36 +01:00
Gordon Williams
b4621cfed8
Merge branch 'master' into wake-timeouts 2023-07-03 10:48:52 +01:00
Graham Fenner
176dd71b5b
conform to input event table (see #2384) 2023-06-22 11:22:33 +01:00
Graham Fenner
4171de95db
remove #if 0, lock when screen off improve logic, tap direction fix bangle1 only. 2023-06-21 10:47:47 +01:00
Graham Fenner
8fc0652354
ensure lcd power off/backlight off apis lockscreen if lockTimeout==lcdPowerTimeout etc 2023-06-21 07:17:06 +01:00
Graham Fenner
4e1403f40e
invert right left bottom top tap direction correct 2023-06-20 19:00:38 +01:00
Graham Fenner
facf62a805
changelog, shorter concise naming of backlight api 2023-06-20 18:19:48 +01:00
Graham Fenner
7654cfdc99
screen off input,lcd backlight bangle api 2023-06-20 12:42:18 +01:00
Gordon Williams
d5dc1da870 Quick fix based on https://github.com/espruino/Espruino/issues/2374#issuecomment-1598464853 - avoids potential for some touch events to be set but not handled immediately 2023-06-20 11:02:51 +01:00
Gordon Williams
529fb0779e Bangle.js: setUI now has a 'redraw' argument to allow apps to provide a way to redraw themselves
Also fixes for scroller.isActive (and redraw checks) that break if there is a back icon
2023-06-20 11:00:23 +01:00
Martin Boonk
306119cf3e Fix reusing touch coordinates 2023-06-19 22:47:20 +02:00
Graham Fenner
b960f79330
reduce uncertainty when reading setui remove warning by providing url 2023-06-16 22:46:27 +01:00
Graham Fenner
9d1e128b2c
less misleading documentation, Bangle does not have a gyro 2023-06-16 06:22:51 +01:00
Gordon Williams
85872e6fff Bangle.js: Add Bangle.showRecoveryMenu, and if storage is corrupt then show it rather than automatically doing factory reset 2023-06-05 16:07:55 +01:00
Gordon Williams
7171b28325 Update default firmwares 2023-05-24 12:32:50 +01:00
Gordon Williams
d7d4ab2fba Bangle.js2: Automatically switch the heart rate algorithm into sport mode when a certain amount of movement is detected 2023-05-24 11:53:17 +01:00
Gordon Williams
f1731d64b2 If a Storage file called '.loading' exists, use that instead of the loading screen 2023-05-18 10:17:44 +01:00
Gordon Williams
e023f901d0 Bangle.js: Now auto-reset compass if it was on while the watch was charging (fix https://github.com/espruino/BangleApps/issues/2648) 2023-05-11 09:17:34 +01:00
Gordon Williams
95fb716f11 Bangle.js2: Added Bangle.setOptions({hrmSportMode}) 2023-05-02 13:00:47 +01:00
Gordon Williams
9b30f17227 Added jsvObjectGetChildIfExists to avoid the jsvObjectGetChild(... ,0) case - saves ~300b of flash space 2023-04-25 10:59:34 +01:00
Gordon Williams
21e7dd8061 Bangle.js2: Switched to proprietary heart rate algorithm (from our Open Source version). It just works better. 2023-04-24 14:55:25 +01:00
Rob Pilling
87eeaad3d2 Add ShortBoolean type
This allows us to use 1 or 0 instead of true or false.
2023-04-11 18:14:17 +01:00
Rob Pilling
5ab6224954 Split setUI types into overloaded functions
This prevents erroneous usage, e.g. a callback with "clock" or expecting
`undefined` to be passed to a "clockupdown" callback.

It also "blesses" `{mode: "clock" | "updown" | ...}` with a subset of
options which are handled by `setUI` (`remove` and `back`).
2023-04-07 16:50:32 +01:00
Gordon Williams
9ef21c97e8 Fix 'ghosting' issue on Welcome screen (forcing timeout/lcdPower/etc at boot could disable the EXTCOMIN toggle) 2023-03-22 09:34:38 +00:00
thyttan
d41aa58ab5 add info re touch event xy.type 2023-03-13 19:05:19 +01:00
Gordon Williams
f799e0a892 Fix Bangle.js 1 default storage contents for emulator 2023-03-07 14:58:46 +00:00
Gordon Williams
189e7ed435 new default apps 2023-03-07 14:07:46 +00:00
Gordon Williams
a880cf5b49 Bangle.js: Fix for Bangle.is* functions after #2323 fix 2023-02-27 13:22:22 +00:00
Gordon Williams
d4e5498885
Merge pull request #2333 from bobrippling/widget-type
Update Widget type
2023-02-27 09:08:22 +00:00
Gordon Williams
1d521eefef Bangle.js2: Fix Compass Z heading (fix #1208) 2023-02-27 09:07:41 +00:00
Rob Pilling
b05a14d97f Update Widget type 2023-02-25 21:49:50 +00:00
Rob Pilling
67f80998f7 Bangle::setUI: add remove argument 2023-02-08 23:07:19 +00:00
Rob Pilling
953f33d683 Update docs with [optional] (for typescript) 2023-02-08 22:48:30 +00:00
notEvil
540c9d97c1 - l/b/jswrap_bangle: added pollInterval to Bangle.dbg 2023-01-05 15:59:52 +01:00
Gordon Williams
ae48a63021 Updated factory installed apps 2022-12-16 09:03:27 +00:00
Gordon Williams
bb0e56594f tweak 2022-12-15 14:12:42 +00:00
Gordon Williams
8d0ae537ec Bangle.js2: Improve touchscreen handling to handle out of range data from the controller on some devices 2022-12-15 14:11:56 +00:00
Gordon Williams
d8555bfa7e Bangle.js2: Decode touchscreen high bytes 2022-12-14 16:29:50 +00:00
Gordon Williams
8c83923bb8 Quick possible fix for large positive offsets for touch at top of screen 2022-12-14 15:29:39 +00:00