316 Commits

Author SHA1 Message Date
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
Gordon Williams
bdd2977453 Fix remaining low power pin watch regression - Bangle.off now works again (fix #1995) 2021-04-07 16:13:01 +01:00
Gordon Williams
636c4ec0c0 SMAQ3: Add a 240x240 LCD mode that can display old-style Bangle apps 2021-02-25 16:36:51 +00:00
jeffmer
5744e66855 BMP280 pressure sensor bug fixes 2021-02-15 10:29:22 +00:00
jeffmer
1513f80a90 oops - fix small ifdef inclusion bug 2021-02-11 12:08:00 +00:00
jeffmer
6ef0a90b84 Adjust setLCDPower for SAMQ3 always on didplay 2021-02-11 11:56:29 +00:00
Gordon Williams
4e582b3a60 Convert getXYZPower to isXYZOn - this matches with the original isLCDOn function 2021-02-04 11:18:27 +00:00
Gordon Williams
b077d6670d Fixed dimmable backlight on non-Bangle.js watches
SMAQ3: Touchscreen is now powered off with Bangle.setLCDPower(0), auto-powers off after 30sFixed dimmable backlight on non-Bangle.js devices
2021-02-04 11:05:04 +00:00
Gordon Williams
936de959aa Bangle.js: Add app ID option to setXYZPower to allow apps to share devices (power is on as long as one app wants the device) (fix #1971)
Bangle.js: Add getXYZPower() functions
2021-02-02 16:14:51 +00:00
Gordon Williams
e81922420d fix warnings 2021-01-29 11:59:54 +00:00
Gordon Williams
f103ec2e09 Added BMP280 support - currently not producing correct values 2021-01-29 11:41:14 +00:00
Gordon Williams
0932435c29 Bangle.js: Add accelerometer recovery for rare cases when accelerometer boots with corrupted address (fix #1972) 2021-01-28 16:07:46 +00:00
Gordon Williams
39e9f2f061 Start of SMA Q3 pressure implementation - still needs BMP280 handling 2021-01-28 11:56:37 +00:00
Gordon Williams
84c5c8ea0e Merge branch 'master' of github.com:espruino/Espruino 2021-01-28 11:37:56 +00:00
Gordon Williams
b256ee4b93 Bangle.js: Don't enter accelerometer power save mode if compass/barometer is in use
Watches: Allow streaming pressure data from Barometer
2021-01-28 11:33:04 +00:00
jeffmer
93009d0a73 SMAQ3 Accel x,y,z same sign as Bangle 2021-01-27 11:07:34 +00:00
Gordon Williams
2d553ae79a Bangle.js: Make the 'home' button more configurable in code 2021-01-26 10:11:49 +00:00
Gordon Williams
947229b56e Bangle.js: Add Bangle.softOff to allow the RTC to keep running 2021-01-26 10:09:33 +00:00
Gordon Williams
bdf9511c2a Timekeeping fixes related to dc8d913d443b9995e41b8d35fcd8e034ff66195b 2021-01-26 10:02:46 +00:00
Gordon Williams
c88dbe6d0d SMAQ3: Add support for unknown compass IC 2021-01-26 09:48:53 +00:00
Gordon Williams
66e1331f75 fix emscripten build 2021-01-21 16:03:04 +00:00