Martin Boonk
d3d3615ab3
Implement passing through remove methods for E.show*
2022-11-07 23:55:59 +01:00
Gordon Williams
95acaee598
trace formatting
2022-11-07 21:09:32 +00:00
Gordon Williams
bb6caa38fd
Fix JIT when overwriting a pre-existing function, JIT now allows var/let/const, fix lock leak in function call, work around postinc issue
2022-11-07 21:09:21 +00:00
Gordon Williams
a9e823dc40
JIT compiler now included in MDBT42Q/Pixl.js/Puck.js/Bangle.js 1
2022-11-07 16:46:43 +00:00
Gordon Williams
7e23a12382
JIT now allows var/let/const
2022-11-07 16:46:12 +00:00
Gordon Williams
0d13a8acee
script tweak
2022-11-07 16:20:49 +00:00
Gordon Williams
ff4a747f9b
Fix JIT when overwriting a pre-existing function
2022-11-07 16:20:41 +00:00
Gordon Williams
8524ac0071
remove debug numbers
2022-11-07 09:40:22 +00:00
Gordon Williams
dab0b66318
Bangle.js2: Use 8x3bpp block fill with masking (now at least 6x faster than 2v15)
2022-11-05 10:57:02 +00:00
Gordon Williams
6b2cfe669b
linux build for Bangle.js2 (good for testing 3 bit graphics lib)
2022-11-05 10:50:13 +00:00
Gordon Williams
e2453c0bf1
tweaked storage type of factory flash image to remove compile warnings
2022-11-05 10:14:01 +00:00
Gordon Williams
f7403602c2
Bangle.js2: Flip LCD SPI bit order so operations in Espruino can be faster (45% faster fillRect)
2022-11-02 16:09:54 +00:00
Gordon Williams
1ff5d8ec03
Well that sucked. When we moved to 4bpp we were loads faster to draw to graphics, but the transfer speed to the LCD was 33% slower and it turns out that really hit us
...
Instead go back to 3bpp and having learnt some lessons, try and make it a little faster
2022-11-02 15:12:21 +00:00
Gordon Williams
a6224209b4
Fix minor regression in 4 bit code
2022-11-02 14:50:36 +00:00
Gordon Williams
26de1ec0ae
E.HSBtoRGB can now be called with E.HSBtoRGB(h,s,b,16) to return a 16 bit value suitable for Bangle.js/etc
2022-11-02 14:46:53 +00:00
Gordon Williams
3f8963b500
process.memory() reports stackFree which allows us to easily check if we're ok for recursion
...
also improve docs, fix #2283
2022-11-02 14:45:54 +00:00
Gordon Williams
d42b09a5f6
Bangle.js2: Switch to 4 bit LCD mode (3900b wasted, but 5x fill speed increase)
2022-11-02 14:44:49 +00:00
Gordon Williams
f9cbcb7c8a
removing some compile warnings
2022-11-02 10:25:52 +00:00
Gordon Williams
c53ad404a5
Espruino: Ensure flash/native strings really can't be appended to ( fix #2282 )
2022-11-02 10:21:52 +00:00
Gordon Williams
f81579beae
Merge branch 'master' of github.com:espruino/Espruino
2022-11-01 09:30:40 +00:00
Gordon Williams
211d57306f
Bangle.js: Remove F_BEEPSET feature flag (now 3 years old)
2022-11-01 09:30:16 +00:00
Gordon Williams
3566505b67
Bangle.js: Compass 'heading' now provides correct value (without 360-heading) required
2022-11-01 09:29:36 +00:00
Gordon Williams
450eabe3b0
Bangle.js: Compass 'heading' now provides correct value (without 360-heading) required
2022-11-01 09:26:32 +00:00
Gordon Williams
f56e846f58
Ensure jsvUnLock2 actually contains two inlined versions of jsvUnLock - another fractional speed boost
2022-10-31 13:05:52 +00:00
Gordon Williams
9044502816
Revert null-check optimisation
2022-10-31 13:02:33 +00:00
Gordon Williams
3f7e1ee38d
jslIsToken always called with the second argument the same (1). The compiler seems smart enough to get this, but lets make life easier too.
...
There are no single-char reserved words - this simple check gives us a 1% speed boost on minified code!
2022-10-31 12:46:13 +00:00
Gordon Williams
ee7739438e
A few small speed optimisations - ensure lexer inlines some checks in the most-called code
2022-10-31 12:29:47 +00:00
Gordon Williams
96fbc3bbcd
Fix for regression in last commit that --test-all came across
2022-10-31 11:14:56 +00:00
Gordon Williams
dee98a1566
More tweaks to allow checks to be inlined better
2022-10-31 10:41:04 +00:00
Gordon Williams
ddba57f4be
Merge pull request #2280 from halemmerich/master
...
Check widgets for width > 0 before including in appRect
2022-10-31 10:23:18 +00:00
Martin Boonk
35def9f931
Check widgets for width > 0 before including in appRect
2022-10-28 22:39:21 +02:00
Gordon Williams
62aa97bb58
More tweaks to allow compiler to fold compares in better
2022-10-28 21:31:58 +01:00
Gordon Williams
0cb52068f4
More jsvIs* enhancements - use preprocessor to avoid duplication of code
2022-10-28 16:57:55 +01:00
Gordon Williams
d5491b5ba6
Improve jsvIs* functions (because v->flags is volatile). 200b space saved, >2% speed improvement
2022-10-28 16:25:08 +01:00
Gordon Williams
3bab5c60a8
updated default apps
2022-10-28 14:55:28 +01:00
Gordon Williams
782d13462b
oops - fix minor tweak that broke nRF52 builds
2022-10-28 14:16:43 +01:00
Gordon Williams
1219082ff3
comment
2022-10-28 13:55:28 +01:00
Gordon Williams
fdee733788
Add ESPR_NO_PROMISES to allow promises to be left out of builds (specifically micro:bit 1). Adjust ifdefs so if no central mode, we're not including functionality we don't want
2022-10-28 13:55:22 +01:00
Gordon Williams
4bb70240fc
Bangle.js: showLauncher's 'fast load' now updates __FILE__
2022-10-28 12:03:18 +01:00
Gordon Williams
5be68a80ba
Slightly faster, cleaner, Bangle.drawWidgets code
2022-10-28 11:35:11 +01:00
Gordon Williams
1e0bf95da6
Fixed build issues for bluetooth with no centrals (microbit1)
2022-10-28 11:31:11 +01:00
Gordon Williams
4d908deb3e
Merge branch 'master' of github.com:espruino/Espruino
2022-10-27 15:56:57 +01:00
Gordon Williams
891029bfde
ESP32: Bluetooth LE tweaks - central mode connects, scans, reads, writes and notifies
...
Bluetooth: fix for incorrect Bluetooth task strings shown in some errors
Tried to move common code in jsble_exec_pending into jsble_exec_pending_common
2022-10-27 15:28:28 +01:00
Gordon Williams
0625027087
Merge pull request #2279 from fanoush/f-sspi-lsb-fix
...
Software SPI - fix LSB mode when receiving, was always MSB
2022-10-27 09:27:30 +01:00
fanoush
4a0c869701
SPI - fix LSB mode when receiving, was always MSB
2022-10-27 01:15:29 +02:00
Gordon Williams
dec5abf73d
Merge pull request #2277 from espruino/dependabot/github_actions/actions/upload-artifact-3.1.1
...
Bump actions/upload-artifact from 3.1.0 to 3.1.1
2022-10-26 08:27:55 +01:00
dependabot[bot]
1d07f1588f
Bump actions/upload-artifact from 3.1.0 to 3.1.1
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.0...v3.1.1 )
---
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>
2022-10-24 01:36:31 +00:00
Gordon Williams
5345b5f71f
Bangle.js2: Swipe direction is now modified based on g.setRotation
...
https://github.com/espruino/BangleApps/issues/1040#issuecomment-1285869844
2022-10-21 13:29:16 +01:00
Gordon Williams
9286ecc314
Merge pull request #2275 from halemmerich/master
...
Fix using not defined variable if uiRemove is available
2022-10-21 11:55:26 +01:00
Martin Boonk
9866d79153
Fix using not defined variable if uiRemove is available
2022-10-21 12:50:22 +02:00