386 Commits

Author SHA1 Message Date
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
Gordon Williams
fc523a6bd3 Remove backlight_inverted additions since it can already be handled automatically by Espruino 2021-05-13 15:02:28 +01:00
Gordon Williams
b5894621c0 Misc merge of Dickens changes to bring branches more in line 2021-05-13 12:26:41 +01:00
Gordon Williams
8f015b446e Bangle.js: Don't reset all peripherals when loading a new app, and only
turn peripherals off if unused 500ms after starting new app

# Conflicts:
#	ChangeLog
#	libs/banglejs/jswrap_bangle.c
2021-05-13 11:56:25 +01:00
Gordon Williams
f62b648a28 Add smooth backlight fading 2021-05-13 11:54:07 +01:00
Gordon Williams
50bb6e8b42 Only re-initialise peripherals after a completely fresh boot. Also ensure LCD starts up off, and slowly brightens up
# Conflicts:
#	libs/banglejs/jswrap_bangle.c
2021-05-13 11:43:16 +01:00
Richard Blakesley
c89dbbad27 KX126 accelerometer option now working
...but not yet using the KX126's built-in pedometer.

- softOff is now drawing sensible current
2021-05-13 11:30:47 +01:00
Gordon Williams
e533654b19 Don't build in HRM if not needed 2021-05-06 14:10:00 +01:00
Gordon Williams
917ceab971 Bangle.js: Ignore touch and swipe events when the LCD is off
Fixes https://github.com/espruino/BangleApps/pull/734#issuecomment-829920718
2021-04-30 09:11:34 +01:00
Gordon Williams
ea78e6c7a1 Bangle.js: Improved HRM calculations - swapped autocorrelation for bandpass filter 2021-04-29 14:58:38 +01:00
Gordon Williams
d338bfbf8a Bangle.js: Significantly improved step counting algorithm using bandpass filter (fix #1846) 2021-04-29 11:00:34 +01:00
Gordon Williams
88f666cb08 Emulator build tweaks 2021-04-19 15:34:35 +01:00