Commit Graph

98 Commits (ee104a2e8a1f29160df90fe46f285572c55913e3)

Author SHA1 Message Date
Gordon Williams 297188624e Move BLE into its own menu, add passkey pairing setup. Doesn't seem great when working via web bluetooth 2020-05-15 16:14:17 +01:00
Gordon Williams 53d9982a5a tweak to aid with settings development - fix #366 2020-04-30 10:23:43 +01:00
Gordon Williams 2651508dfc oops - fix to limit HID choices 2020-04-28 17:03:52 +01:00
Gordon Williams 517c35a37d Added BLE HID option for Joystick and bare Keyboard, update HID apps to send correct info 2020-04-28 15:23:02 +01:00
Richard de Boer 8d6dec8712 Merge branch 'master' into data_files
# Conflicts:
#	apps/setting/ChangeLog
#	apps/widbatpc/ChangeLog
2020-04-20 12:00:25 +02:00
Richard de Boer b047f14d4a setting: Save settings in data file 2020-04-17 21:43:03 +02:00
Richard de Boer c7f2a18caa Remove "settings" from appid.info 2020-04-17 21:08:07 +02:00
Gordon Williams eb4ac302cc Reduce memory usage further when running app settings page 2020-04-16 11:33:36 +01:00
Gordon Williams 78214a267e 0.15: Reduce memory usage when running default clock chooser (#294) 2020-04-15 10:35:29 +01:00
Gordon Williams d54c0c7dea 0.14: Reduce memory usage when running app settings page 2020-04-14 16:11:29 +01:00
Gordon Williams 1a69b2a3ac
Merge branch 'master' into setting 2020-04-14 10:13:09 +01:00
Richard de Boer f5246a4212 Some minor settings fixes 2020-04-12 01:29:57 +02:00
Marco Heiming d9a9bae5ee Move LCD Brightness menu into more general LCD menu & unify writings 2020-04-10 17:42:14 +02:00
Gordon Williams f0cd452622 0.12: Fix memory leak (#206)
Bring App settings nearer the top
      Move LCD Timeout to wakeup menu
2020-04-09 21:51:19 +01:00
Gordon Williams 50e61015ec Settings: Make LCD brightness work after leaving settings (fix #186) 2020-04-08 10:16:32 +01:00
Gordon Williams 2dfbbfd64e
Merge branch 'master' into lcd-brightness-setting 2020-04-06 10:03:28 +01:00
Simon Weis da0aa84705 Adds LCD brightness setting 2020-04-05 16:30:55 +02:00
Simon Weis 1c9bcee29b Remove conflict left over 2020-04-04 17:57:43 +02:00
Simon Weis d325be9b57 Merge branch 'master' into auto-on-settings 2020-04-04 17:56:49 +02:00
Simon Weis dd2b820587 Changed wording a bit 2020-04-04 17:50:23 +02:00
Simon Weis 90e49c215a Remove left over code 2020-04-04 17:40:18 +02:00
Simon Weis a5a05baa56 Add lcd auto-on settings 2020-04-04 17:37:33 +02:00
Richard de Boer 7b669cd028 Move Welcome config into App/widget settings 2020-04-04 01:30:33 +02:00
Richard de Boer 048a042ffa Revert "Settings: load app settings in their own scope"
> Actually eval('('+appSettings+')') is significantly worse I'm afraid.
>
> Basically, if you do Storage.read you get a pointer to external memory
> Any functions have their code kept in that memory so it saves loads of
> RAM. The second you append to the string it has to copy everything to
> RAM - so now every function ends up in RAM, not Flash :(

This reverts commit c135c70f
2020-04-03 21:32:05 +02:00
Richard de Boer fc7e61e2ca Settings: minor reformat 2020-04-03 19:59:15 +02:00
Richard de Boer c135c70f7e Settings: load app settings in their own scope 2020-04-03 19:56:30 +02:00
Richard de Boer 39621bfae0 Settings: Add support for app/widget settings
Apps and widgets can add a `<appid>.settings.js` file which can be
opened from the "App/widget settings" submenu.
This file should define a single function to configure the app/widget.
The function is passed a `back` argument, which can be used to return to
the settings menu by calling `back()`.

Example `<appid>.settings.js`:
```
function settings(back) {
  const mySettingsMenu = {
    '': { 'title': 'My Widget' },
    '< Back': back, // go back to settings menu
    'Sound': {
      value: false,
      format: s => s ? 'on' : 'off',
      onchange: s => {if(s) Bangle.beep()} // TODO: save new value
    },
  };
  E.showMenu(mySettingsMenu)
}
```
2020-04-03 01:46:43 +02:00
Gordon Williams a874d5838c Added vibrate as beep workaround 2020-03-25 11:05:33 +00:00
Gordon Williams af686919a1 Remove distance setting as there's a separate app for Locale now 2020-03-10 12:35:45 +00:00
Gordon Williams 6cfe9c340b Take advantage of recent nonbreaking change that stops readJSON from causing errors 2020-02-28 17:02:26 +00:00
Gordon Williams 50e3c852fb MASSIVE REFACTOR
New Bangle.js firmwares remove 8 char name restriction so we're ditching the first char -> file type and using normal file extensions
Took the opportunity to remove code for older Bangle.js (since the new stuff won't work anyway)
Also removed the need for an 'app.json' - it's now renamed 'app.info' on the watch, and we just auto-generate it
Renamed a few apps so widgets all start with 'wid'
2020-02-28 11:44:25 +00:00
Gordon Williams 95a42582f3 Fix Settings json 2020-02-27 16:01:17 +00:00
Gordon Williams 9a76d6d800 Disable GPS time log messages, add (default=1) setting to hide log messages 2020-02-25 13:34:06 +00:00
Gordon Williams 860da909bf Added welcome app (fix #96)
When installing default apps, update time
2020-02-13 08:18:46 +00:00
Gordon Williams 47205bfe61 Add alarms app (fix #83) 2020-02-12 10:48:14 +00:00
Gordon Williams 184f173e44 no need to set screen on all the time 2020-02-10 16:58:34 +00:00
Gordon Williams 3eb5d15267 Fix https://github.com/espruino/BangleApps/issues/93 2020-02-10 13:49:57 +00:00
Gordon Williams 527ff57e99 Simplify settings and add locale submenu, add 12/24 hour option (fix #76), add distance format option, and ensure settings all apply at boot by moving them to the bootloader 'app' (fix #89) 2020-02-04 16:17:23 +00:00
Gordon Williams 6d15ec14f0 Fix issue passing extra arguments to load() now we've allowed load to take an extra argument 2020-01-17 11:53:54 +00:00
Gordon Williams 95d4c710bc Massive refactor - Make all clocks responsible for loading widgets if they want them, and for loading the launcher on BTN2.
Also make bootloader try and polyfill missing stuff from 2v04
2020-01-17 11:43:26 +00:00
Gordon Williams b4b882d523 replace deprecated Bangle.menu 2020-01-17 11:32:32 +00:00
Gordon Williams b68d08c93f add settings to top 2020-01-07 09:11:34 +00:00
Ujjwal Sharma 08c8ef70d1
fixup! feature: all thirty-minute timezones 2019-12-19 19:53:53 +05:30
Ujjwal Sharma d483eb9064
feature: all thirty-minute timezones 2019-12-19 03:12:55 +05:30
Gordon Williams cc06038619 enable BLE/programmable by default for now or it's a support nightmare 2019-12-05 11:48:41 +00:00
Gordon Williams f04f6f62aa just quickly fix #15 2019-11-20 08:19:56 +00:00
Gordon Williams bc9e1e566f Merge branch 'clock-select' of https://github.com/knolleary/BangleApps into knolleary-clock-select 2019-11-18 10:09:48 +00:00
ra100 da1d4d768c
🚚 Move apps to subfolders #46 2019-11-17 23:43:58 +01:00