397 Commits

Author SHA1 Message Date
Gordon Williams
bea3501818 minor refactoring to allow other emulators to be built more easily 2021-08-25 12:14:43 +01:00
Gordon Williams
d744de9404 re-add tap to the docs 2021-08-17 15:21:53 +01:00
Gordon Williams
d630215978 Bangle.js: revert to (better) Kionix default thresholds for tap detect
Bangle.js 2: When wake on touch is enabled, use a single tap on the front of the device for wakeup
2021-08-16 20:48:48 +01:00
Gordon Williams
3def92c50e Bangle.js: Enable the Bangle.on('tap') event from the accelerometer by default 2021-08-16 16:00:41 +01:00
Gordon Williams
cd25f64b05 Bangle.js: Add Bangle.getGPSFix to get last GPS fix without waiting for a listener 2021-08-05 10:06:08 +01:00
Gordon Williams
f75cf02089 docs 2021-07-29 13:21:50 +01:00
Gordon Williams
cc748e5977 Updated initial data with non-broken images 2021-07-28 16:30:46 +01:00
Gordon Williams
7a5db346b8 Added a default JS firmware 2021-07-28 14:47:03 +01:00
Gordon Williams
f36f7ab061 Bangle.js: Store heart rate periods in actual time (not sensor reading count) - more stable 2021-07-28 14:04:45 +01:00
Gordon Williams
c02fe9077b Revert scaling and add an offset variable to allow VC31 HRM values to fit into a more sensible range, allow HRM to work when used immediately after a load() 2021-07-27 16:46:09 +01:00
Gordon Williams
f7ff30401b F18 compile, but not working now 2021-07-09 12:03:39 +01:00
Gordon Williams
88104dcc42 commit device-specific stuff, add debug info 2021-07-09 11:43:47 +01:00
Gordon Williams
b42000f23b Initial VC31 heartrate code 2021-07-08 17:05:52 +01:00
Gordon Williams
43a0ae9ae1 Bangle.js 2: 'factory default' set of JS now included inside firmware 2021-07-08 11:14:53 +01:00
Gordon Williams
83dcef80d9 update touch docs 2021-07-08 08:44:41 +01:00
Gordon Williams
30a9f3824c Bangle.js: g.flip no longer keeps the screen awake, flipTimer renamed to inactivityTimer 2021-07-01 14:52:09 +01:00
Gordon Williams
c5210452a4 Bangle.js 2 - remove LED1=backlight, and add 2x fake LEDs instead 2021-07-01 14:26:18 +01:00
Gordon Williams
99541c982a Bangle.js: Display small 'Loading...' screen to show something is happening when loading apps 2021-06-30 13:48:52 +01:00
Gordon Williams
d557c8f191 Change default highlight colour in theme, add custom showPrompt (which uses touch) 2021-06-30 11:53:24 +01:00
Gordon Williams
1d7abbe3b4 Rename SMAQ3 board to BANGLEJS2 2021-06-24 16:32:43 +01:00
Gordon Williams
2329b347a3 Graphics: Add dark boolean to themes to allow apps to update depending on bg color 2021-06-24 13:36:56 +01:00
Gordon Williams
f461eebeb8 Squashing warnings, tweak touchscreen drag reporting 2021-06-24 09:31:21 +01:00
Gordon Williams
9de116c453 SMA Q3: Remove fake BTN1/3, and ensure the one button is now just BTN1. Remove E.touch and add 'Bangle.drag' event 2021-06-24 09:19:37 +01:00
Gordon Williams
a565b70d9f Ensure E.touch event also includes coordinates 2021-06-23 16:52:57 +01:00
Gordon Williams
c8ed9665a2 Fix getPressure memory leakFox get 2021-06-22 16:53:22 +01:00
Gordon Williams
d99c0838ef add backlightTimeout (we now have LCD, backlight, and lock timeouts) 2021-06-17 14:05:22 +01:00
Gordon Williams
d97e17f7ea setTimeout now sets the lock timeout too, to allow backwards compatibility 2021-06-17 13:10:41 +01:00
Gordon Williams
cf2ebb6fd7 Merge branch 'master' into bangle_lock
Ensure onlock from button works if LCD timeout is 0

# Conflicts:
#	libs/banglejs/jswrap_bangle.c
2021-06-17 10:55:29 +01:00
Gordon Williams
ce0b99580f ensure Q3 doesn't sleep if touchscreen being used 2021-06-01 10:51:31 +01:00
Gordon Williams
e33f2479d8 Bangle.js: if we restart with home button held down, ignore the 'button up' event 2021-06-01 09:55:43 +01:00
Gordon Williams
6e7cae245a Fix Bangle.off/.softOff regression (device wouldn't wake) (fix #2011) 2021-05-28 19:45:04 +01:00
Gordon Williams
76926f1ed0 fix getLogo memory usage regression 2021-05-28 14:29:30 +01:00
Gordon Williams
872e1ef662 Fix blank screen regression if device is reset with the screen off 2021-05-28 11:39:10 +01:00
Gordon Williams
77da07b488 Move HRMi to HRM-raw event (to match GPS-raw) and document it
Stop storing power status arrays for devices that are no longer in use
2021-05-28 11:38:35 +01:00
Gordon Williams
faab0ce4c5 Fix regression where leaving an app that used double buffering would mess up the screen 2021-05-28 10:37:37 +01:00
Gordon Williams
f9d4fefe9c Attempt at separating locking the screen/buttons and turning the LCD off 2021-05-27 15:37:31 +01:00
Gordon Williams
b57db4d7a7 Update showMenu with rendering optimisations 2021-05-27 11:38:35 +01:00
Gordon Williams
28fa59fb8a Ensure memory LCD turns off, toggle EXTCOMIN as per spec (120Hz when backlight on) 2021-05-27 08:50:25 +01:00
Gordon Williams
d41a7af184 Fix issue with backlight getting left off after reset when backlight is already turned off 2021-05-26 20:43:49 +01:00
Gordon Williams
221792142d Bangle.js: Switch beep/buzz to IRQs (keeps time correct even when JS is busy) 2021-05-26 20:22:05 +01:00
Gordon Williams
b9df56023d Add Bangle.setUI and use for showMenu 2021-05-26 17:07:35 +01:00
Gordon Williams
72e3dea851 Remove memory LCD 240px mode as it wasn't very satisfactory 2021-05-26 11:31:43 +01:00
Gordon Williams
2cf7137471 memory LCD scrolling, theme fixes 2021-05-26 11:14:36 +01:00
Gordon Williams
1f3f580c5f Bangle.js: Add support for global colour themes which affect g.clear/g.reset 2021-05-26 11:02:07 +01:00
Gordon Williams
32545fdd0e Fix recent Bangle.js regression (screen shuts off when loading new app) 2021-05-25 13:44:37 +01:00
Gordon Williams
1d1aadf2e8 syncing branches - pull across some minor changes 2021-05-25 12:04:09 +01:00
Gordon Williams
992e90d8ea Ensure compass doesn't auto-reset between apps. Add resetCompass function to force it 2021-05-25 11:49:39 +01:00
Gordon Williams
de42908034 Switch I2C reads to *not* send a STOP after write 2021-05-24 11:15:49 +01:00
Gordon Williams
b95fd1db23 compile fixes/general tweaks after recent merge 2021-05-21 10:47:05 +01:00
Gordon Williams
e8f7e9c1e5 Fixes after recent merge - turns out a few things NACK with I2C (eg Bangle.js IO), so actually checking this breaks it. 2021-05-13 17:01:42 +01:00