316 Commits

Author SHA1 Message Date
Gordon Williams
d70352b6b9 Graphics: drawImage now honours arraybuffer offsets 2021-10-13 10:18:30 +01:00
Gordon Williams
9b4e0fb57c Docs - fix https://github.com/espruino/EspruinoDocs/issues/612 and https://github.com/espruino/EspruinoDocs/issues/611 2021-10-12 12:18:08 +01:00
Gordon Williams
a28b2f793b Bangle.js: Add Bangle.on('health',..) event and Bangle.getHealthStatus 2021-10-11 17:25:12 +01:00
Gordon Williams
547811f798 Bangle.js2: Add Bangle.compassRd, fix setCompassPower 2021-10-07 15:13:30 +01:00
Gordon Williams
7922aaecf7 Bangle.js: Fix Bangle.tap event regression (now works again) 2021-10-07 09:27:50 +01:00
Gordon Williams
924804259b Bangle.js: fix Bangle.getLogo memory leak 2021-10-06 15:45:37 +01:00
Gordon Williams
5a6b4c941d add factory reset for emulator 2021-10-05 17:03:35 +01:00
Gordon Williams
e601885015 Support for Bangle.js 2 emulator 2021-10-04 21:14:20 +01:00
Gordon Williams
dfc51d9e75 new storage contents 2021-10-04 14:50:28 +01:00
Gordon Williams
d74f76ff30 Bangle.js: Fix powerSave regression (should default to 'on', but didn't since 2v10) 2021-10-04 10:54:47 +01:00
Gordon Williams
cd1f1da465 Bangle.js 2: Increase reported bit depth from 3->16 and perform bayer dithering when rendering
Makes icons/old apps way more usable (plus provides an easy way to get >3bpp)
2021-09-28 16:26:29 +01:00
Gordon Williams
c16714f5f8 Bangle.js 2: Idle power consumption down from 1.3mA to 0.9mA (pullups on HRM disabled when off) 2021-09-28 14:28:22 +01:00
Gordon Williams
737b2b1f51 new default storage 2021-09-20 16:17:13 +01:00
Gordon Williams
7326232fb3 fix build issues after last commit 2021-09-20 14:39:42 +01:00
Gordon Williams
f6eb80037a Bangle.js: Turn vibrate off every time a new app loads 2021-09-16 16:07:26 +01:00
Gordon Williams
1721c9005c Bangle.js: Fix issue where if non-fullscreen notification was visible and Bangle.js reset, screen was off-center 2021-09-15 10:33:19 +01:00
coylen
4cf9ead055 Added support for double and long touch gestures
- to minimise changes in interface this has added an extra "type" parameter to the existing touch event
 - 0 for standard click
 - 1 for double click
 - 2 for long click

Note cannot currently get double click to fire
2021-09-09 20:03:22 +01:00
Gordon Williams
fc2d816c57 Updated setUI docs 2021-08-26 14:12:13 +01:00
Gordon Williams
ea8733c125 Added hughb's step counting state machine 2021-08-25 12:15:52 +01:00
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