9243 Commits

Author SHA1 Message Date
Gordon Williams
ef5c7c8a38 Bangle.js2: Including Layout module in internal flash 2024-10-24 12:42:21 +01:00
Gordon Williams
b8634fd8e0 JS in the binary now uses jspExecuteJSFunctionCode which helps to skip a parsing step
JS modules that are included are now pretokenised
2024-10-24 12:17:35 +01:00
Gordon Williams
617e1a2975 Ensure that pretokenised Strings are loaded as Flat Strings when executed from a String in RAM
E.nativeCall also checks to see if getting data as a flat string failed (could have caused segfault)
2024-10-23 16:54:27 +01:00
Gordon Williams
ce15301880 Ensure NOFLASH builds don't use filename table 2024-10-23 08:47:52 +01:00
Gordon Williams
3ccbe0548a Bangle.js 2 Noflash build - remove filename tables as *could* be causing issues
Bring py file inline with standard BANGLEJS2 one
Avoid building in code for factory reset to save enough flash memory space
2024-10-23 08:42:16 +01:00
Gordon Williams
86ea31693c fix last commit 2024-10-21 14:19:26 +01:00
Gordon Williams
38cc56f3ff remove dickens-only commands from reference pages 2024-10-21 14:11:44 +01:00
Gordon Williams
10b6f5fe54 More agressive bitdepth tests which set just '1' (not full range) to ensure alignment issues show up 2024-10-18 15:21:00 +01:00
Gordon Williams
445d331de3 Handle semicolons between field declarations in classes 2024-10-18 15:20:24 +01:00
Gordon Williams
f415a9f0b2 Remove errant debug 'print' statement - was only called if something went very wrong 2024-10-17 09:22:52 +01:00
Gordon Williams
806d12dcf1 Fix graphics regressions after 1 bit fill fastpath 2024-10-17 09:22:24 +01:00
Gordon Williams
990adf407e ESP32C3: don't kick connected BLE devices off if reset() is called
ESP32C3: disable warnings about "BT_BTM: BTM_GetSecurityFlags false"
2024-10-16 16:47:11 +01:00
Gordon Williams
70e8f9e957 Fix Curio build after 'USB_CDC' build addition 2024-10-16 16:43:54 +01:00
Gordon Williams
ae11e0e482 Bangle.js2: Bootloader now 'Hold BTN to reboot' not 'BTN1 = REBOOT'/etc
For BJS1 we didn't have much flash, but compiler/code has improved now and BJS2 has more anyway
2024-10-15 12:53:25 +01:00
Gordon Williams
bac3a13b92 Bangle.js2: Bootloader now shows 'Hold button to turn on' to avoid users assuming it is dead when it's not 2024-10-15 12:40:33 +01:00
Gordon Williams
c05f231b13 Bangle.js2: DFU update from flash now retries if CRC doesn't match 2024-10-15 11:32:33 +01:00
Gordon Williams
bcf744a294 Bangle.js: Add Bangle.setOptions({manualWatchdog:true}) to enable users to supply their own JS watchdog (#2560) 2024-10-14 10:03:55 +01:00
Gordon Williams
87b7d6db37 stop the endless torrent of spam from upload-artefact 2024-10-14 09:25:54 +01:00
Gordon Williams
1262d0d099
Merge pull request #2570 from espruino/dependabot/github_actions/actions/upload-artifact-4.4.3
Bump actions/upload-artifact from 4.4.0 to 4.4.3
2024-10-14 09:22:02 +01:00
dependabot[bot]
a2c980feed
Bump actions/upload-artifact from 4.4.0 to 4.4.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.4.0...v4.4.3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 01:21:49 +00:00
Gordon Williams
25cb6ae3b3 minified files for #2565 2024-10-11 14:35:54 +01:00
Gordon Williams
ce663a19f7
Merge pull request #2565 from thyttan/showscroller-q3
E_showMenu_/E_showScroller_Q3: forward touch event
2024-10-11 14:35:10 +01:00
Gordon Williams
28375c8be9
Merge branch 'master' into showscroller-q3 2024-10-11 14:35:00 +01:00
Gordon Williams
3788fbb321 Bangle.js2: GPS now detects binary CASIC packets and splits them into their own GPS-raw event 2024-10-11 14:14:54 +01:00
Gordon Williams
484f00c8c3 Bangle.js2: GPS request RMC packet automatically (so GPS speed/time work even without AGPS) (fix #2354) 2024-10-11 10:37:50 +01:00
thyttan
54f631d7ea E_showMenu_/E_showScroller_Q3: forward touch event
The goal was to make it possible for menus to distinguish between short
and long touches when the entry maps to a function.

With this alarms in the `alarm` app could be made togglable by longpressing
corresponding menu entries.
2024-10-11 10:46:49 +02:00
thyttan
097a056778 ChangeLog: specify Bangle 2 for E.showScroller fix 2024-10-11 10:21:15 +02:00
Gordon Williams
e2061829c1
Merge pull request #2568 from bobrippling/types/short-bool
typescript: all boolean parameters can be `0` / `1`
2024-10-11 09:09:29 +01:00
Gordon Williams
b954a9f489
Merge pull request #2566 from bobrippling/types/reduce
typescript: `Array.reduce`: permit different output to array type
2024-10-11 08:56:11 +01:00
Gordon Williams
ea96724089 update other showMenus after #2569 2024-10-11 08:55:12 +01:00
Gordon Williams
1ac31debcf
Merge pull request #2569 from thyttan/showmenu-q3-remove-scroller-as-callback-argument
E_showMenu_F18/Q3: Remove internal menu object `l` as argument to callback function
2024-10-11 08:50:33 +01:00
thyttan
a49add78aa E_showMenu_F18/Q3: rm internal l as cb func arg
Remove internal menu object `l` as argument to callback function.

This removes a potential for memory leaks and should otherwise have no
impact. As no app on the main BangleApps repo seems to use the option.
See https://github.com/espruino/Espruino/issues/2567.

closes #2567
2024-10-11 00:10:28 +02:00
Rob Pilling
a23d4142d8 typescript: all boolean parameters can be 0 / 1 2024-10-10 20:51:35 +01:00
Rob Pilling
8db73fe7df typescript: Array.reduce: permit different output to array type 2024-10-10 18:05:04 +01:00
Gordon Williams
133933b82a X.on now always allocates an array - tidies up code (fix #2559) 2024-10-10 11:51:06 +01:00
Gordon Williams
b88a4d16b8 jsvObjectIterator is now safe even if not called on something iterable 2024-10-10 11:41:32 +01:00
Gordon Williams
d93c22352f Add jswrap_array_splice_i, slightly tidies up code for shift/unshift 2024-10-10 11:30:06 +01:00
Gordon Williams
f63c156187 removeListener while executing events no longer stops subsequent listeners from executing (#2151) 2024-10-10 11:28:21 +01:00
Gordon Williams
67da4057cb Add comment, these lines fix #2328 2024-10-10 10:51:31 +01:00
Gordon Williams
0c897746e0 Network: enable parsing of 'https' URL and TLS flag even even TLS not built in (#2410) 2024-10-10 10:48:31 +01:00
Gordon Williams
1ee728e269 fix build on board with no debugger 2024-10-10 10:41:55 +01:00
Gordon Williams
7105ca3fa2 Fix debugging of switch statements (fix #2562) 2024-10-10 10:26:23 +01:00
Gordon Williams
e770407976 Ensure randInt returns full 32 bits, so we can do a=new Uint32Array();E.mapInPlace(a,a,Math.randInt) 2024-10-10 10:14:13 +01:00
Gordon Williams
3dcf656455 comment 2024-10-10 10:13:20 +01:00
Gordon Williams
5c1b7ab3c5 Ensure Math.random() can never be 1 as per spec (was unlikely before, but possible)
Add Math.randInt: not in spec, but very useful for embedded
2024-10-10 09:29:39 +01:00
Gordon Williams
ad0f468805 Bangle.js: Added fastpaths for 2 and 4 bit arraybuffers, and massively improve 1 bit fills 2024-10-09 18:36:45 +01:00
Gordon Williams
ec1ec87627 Puck.js: Remove networking support from default build, add PUCKJS_NETWORK -> espruino_2vxx_puckjs_network.zip builds for those that need it 2024-10-08 14:10:17 +01:00
Gordon Williams
68a9db0d08 Waveform: Add ability to play directly from Storage 2024-10-08 12:37:42 +01:00
Gordon Williams
471847f013 Waveform: Add 'npin' option to allow +/- output on two pins 2024-10-08 11:50:59 +01:00
Gordon Williams
6d9495dc62 STM32F4: Update stm32f4xx_ll_usb to fix over-buffered USB CDC tx after being woken from deep sleep 2024-10-07 16:58:21 +01:00