8487 Commits

Author SHA1 Message Date
Gordon Williams
a0e2d9231d Bangle.js: showMenu now won't redraw menu items if the onchange handler changed the menu
https://github.com/espruino/BangleApps/issues/2816

Also change builtin unicode string escapes to \x## - faster and encodes as a single byte so doesn't break when Unicode enabl;ed on builds
2023-06-13 09:21:23 +01:00
Gordon Williams
dfc8e9aad5 Moved vector font into the graphics/fonts dir 2023-06-12 16:04:14 +01:00
Gordon Williams
deffacefed Ensure [].length is a constant (we don't support assignment) 2023-06-12 10:46:29 +01:00
Gordon Williams
09073bfc76 fix wrapString missing last character after UTF8 changes 2023-06-09 15:56:38 +01:00
Gordon Williams
af58af1132 Fix recent regression in switch handling caused by Strings only being interpreted when executing
Seems to have been made visible with 8cbcbefdca99e43307224086c83fb54f48a9bb25 not storing the string in a buffer
2023-06-09 14:48:41 +01:00
Gordon Williams
730d6c745f fix save_on_flash gfx builds 2023-06-08 10:24:39 +01:00
Gordon Williams
cbd51be21a emulator: fix Uncaught Error: Unhandled promise rejection: Error: Unknown argspec 32864 #2377 2023-06-08 10:06:05 +01:00
Gordon Williams
10dce25c8d Making pebble fonts defineable with ESPR_PBF_FONTS, add to ChangeLog 2023-06-06 16:49:23 +01:00
Gordon Williams
8cbcbefdca Ensured unicode support is hidden behind ESPR_UNICODE_SUPPORT 2023-06-06 16:22:22 +01:00
Gordon Williams
b937497634 Fix StringIterator regression when loading a flash string 2023-06-06 12:42:59 +01:00
Gordon Williams
d9509fccf0 Merge branch 'master' into unicode 2023-06-06 12:19:21 +01:00
Gordon Williams
c660ebe1bc Fixed assert fail when building non-release builds on many boards - #2376 2023-06-06 12:18:59 +01:00
Gordon Williams
f83a3b75ac Merge branch 'master' into unicode 2023-06-06 11:47:16 +01:00
Gordon Williams
49c916a011 Fix Graphics.createImage if the last character is a newline
Graphics: Fix issue if drawImage given a non-image
2023-06-06 11:46:39 +01:00
Gordon Williams
d77ea4b4bd Fix Graphics.createImage if the last character is a newline
Graphics: Fix issue if drawImage given a non-image
2023-06-06 11:44:34 +01:00
Gordon Williams
85872e6fff Bangle.js: Add Bangle.showRecoveryMenu, and if storage is corrupt then show it rather than automatically doing factory reset 2023-06-05 16:07:55 +01:00
Gordon Williams
38cb910ff6 Changelog note for #2367 2023-06-05 13:04:13 +01:00
Gordon Williams
b5260a89a7 Merge branch 'master' of github.com:espruino/Espruino 2023-06-05 13:03:34 +01:00
Gordon Williams
2b4caffa34 Fix Object.values/entries for numeric keys after 2v18 regression (fix #2375) 2023-06-05 13:02:23 +01:00
Gordon Williams
566344f4e8 Added PBF font file loading 2023-05-26 12:14:13 +01:00
Gordon Williams
25b7987897
Merge pull request #2367 from fanoush/f-SD6.1-advertising
for SD>5 use static buffers for advertising and scan response data
2023-05-26 09:26:00 +01:00
Gordon Williams
5fe2e6ae95 Added E.asUTF8 and extra functionality to work with UTF8 strings in Espruino 2023-05-25 12:35:42 +01:00
Gordon Williams
ad96d3c9a5 first stab at unicode support 2023-05-25 11:03:46 +01:00
Gordon Williams
c0bed8d566 changelog tweaks 2023-05-24 12:51:29 +01:00
Gordon Williams
7171b28325 Update default firmwares RELEASE_2V18 2023-05-24 12:32:50 +01:00
Gordon Williams
bd8139ae96 changelog ready for next release 2023-05-24 12:29:09 +01:00
Gordon Williams
80aea2c904 2v18 2023-05-24 12:03:22 +01:00
Gordon Williams
d7d4ab2fba Bangle.js2: Automatically switch the heart rate algorithm into sport mode when a certain amount of movement is detected 2023-05-24 11:53:17 +01:00
Gordon Williams
90a271c89d Merge branch 'master' of github.com:espruino/Espruino 2023-05-23 10:45:23 +01:00
Gordon Williams
e5842866e1 Bangle.js2: Ensure overlays are flipped when screen is flipped 180 degrees (eg. left-handed mode)
Fix https://github.com/espruino/BangleApps/issues/2767
2023-05-23 10:44:44 +01:00
Gordon Williams
85858ed2bb
Merge pull request #2373 from bobrippling/setTimeout-typings
Add typings for `setTimeout`/`setInterval` and co.
2023-05-22 09:17:15 +01:00
Rob Pilling
8f0fec92e1 Add typings for setTimeout/setInterval and co. 2023-05-22 07:56:54 +01:00
Gordon Williams
9c94cb9754 Bangle.js: E.showPrompt now resets background color before clearing the screen 2023-05-19 16:36:59 +01:00
Gordon Williams
900bd4df99 removing the factory apps test for now - something about the GitHub actions build causes it not to get further than 'Loaded Emulator...' while it works on desktop 2023-05-19 10:13:32 +01:00
Gordon Williams
e590be1fe2 More log messages because this seems to break in GitHub actions now 2023-05-18 11:09:51 +01:00
Gordon Williams
f1731d64b2 If a Storage file called '.loading' exists, use that instead of the loading screen 2023-05-18 10:17:44 +01:00
Gordon Williams
e6114e42b2 Allow Graphics.createImage to use '.' as a placeholder for an empty area 2023-05-18 10:07:12 +01:00
Gordon Williams
fd62aece7d tidy up output by only outputting callfunction hack if required
Improve jswIsBuiltInObject implementation so it doesn't store separate strings - saves ~200b
2023-05-17 12:35:23 +01:00
Gordon Williams
a6398e5c9c Ensure Promise.all completes even if empty or containing pre-resolved promises (fix #2371) 2023-05-17 12:14:30 +01:00
Gordon Williams
3303cfd95a more docs 2023-05-17 11:58:57 +01:00
Gordon Williams
2dc6905f66 Modified E.toString to always return a String (not necessarily flat)
Added E.toFlatString (using old E.toString behaviour)
2023-05-17 11:53:12 +01:00
Gordon Williams
d7e760bc78 Graphics: g.asImage() now reads palette+transparent fields (if they exist) in a Graphics object 2023-05-15 13:18:34 +01:00
Gordon Williams
a0d5544eb4 Ensure Graphics uses jswrap_math_sin/jswrap_math_cos (saves ~5k on SAVE_ON_FLASH_MATH builds) 2023-05-15 10:34:30 +01:00
Gordon Williams
f276338794 Graphics: g.drawImage(gfx) now reads palette+transparent fields if they exist in a Graphics object
Graphics: g.asImage() now reads transparent field (if it exists) in a Graphics object
Needed for https://github.com/espruino/BangleApps/issues/2749
2023-05-15 09:44:49 +01:00
Gordon Williams
5ca0e6a678 floodfill test 2023-05-12 14:11:02 +01:00
Gordon Williams
cdfd8d0340 fix for eventemitter regression in 35c8cb9be11ce76ea1829a4a8b40f2ab051bb60b 2023-05-12 10:42:46 +01:00
Gordon Williams
012d3ddffd tweak 2023-05-12 10:26:43 +01:00
Gordon Williams
e20f12f02e
Merge pull request #2369 from cwilling/ext1
Add function deepSleepExt1 for EXP32
2023-05-12 10:26:01 +01:00
Christoph Willing
5530410d7a
More efficient arithmentic. Avoid meory leak
Signed-off-by: Christoph Willing <chris.willing@linux.com>
2023-05-12 19:16:50 +10:00
Gordon Williams
f49cd98c23 Fix minor regression after last createImage tweaks - that broke tests/test_graphics_drawStringImage.js 2023-05-12 10:02:16 +01:00