9122 Commits

Author SHA1 Message Date
rgomezwap
e9cdef4a03 Adapt source files
Adapt some source files to compile for ESP32 S3
2024-08-16 16:10:50 +02:00
rgomezwap
496ba4ae61 Adding the BUILD configuration for ESP32 S3
Changes in files and new files added so that the build system accepts :

BOARD=ESP32S3_IDF4 RELEASE=1 make
2024-08-16 16:02:32 +02:00
Gordon Williams
ff487e0084 Graphics: Adjust image alignment when rotating images to avoid cropping (fix #2535) 2024-08-12 11:05:03 +01:00
Gordon Williams
9cc9268e13
Merge pull request #2539 from espruino/dependabot/github_actions/actions/upload-artifact-4.3.6
Bump actions/upload-artifact from 4.3.5 to 4.3.6
2024-08-12 07:54:24 +01:00
dependabot[bot]
b8470ff525
Bump actions/upload-artifact from 4.3.5 to 4.3.6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.5...v4.3.6)

---
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-08-12 01:15:57 +00:00
Gordon Williams
5f3f6782ad ESP32C3: Get analogRead working correctly
Thanks to SimonGAndrews!
we need to call it twice to get a decent value on the C3 for some reason!
https://forum.espruino.com/conversations/395499/?offset=100#17482163
2024-08-09 15:54:21 +01:00
Gordon Williams
9b3cc7f806 2v24 release RELEASE_2V24 2024-08-07 08:40:58 +01:00
Gordon Williams
93378fd743 small docs update 2024-08-07 08:40:13 +01:00
Gordon Williams
7eddf32efd
Merge pull request #2536 from espruino/dependabot/github_actions/actions/upload-artifact-4.3.5
Bump actions/upload-artifact from 4.3.4 to 4.3.5
2024-08-05 10:11:45 +01:00
dependabot[bot]
fec29df916
Bump actions/upload-artifact from 4.3.4 to 4.3.5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.4...v4.3.5)

---
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-08-05 01:07:02 +00:00
Gordon Williams
5221a01c92 misc tweaks for curio build 2024-07-25 14:36:00 +01:00
Gordon Williams
597b499943 adding initial curio v2 board file and code 2024-07-22 16:29:32 +01:00
Gordon Williams
e4937494db ESP32: remove interrupt on/off code as it just causes a crash
ESP32: jshPinWatch now returns correct value (event ID vs pin number)
2024-07-22 16:28:58 +01:00
Gordon Williams
fad58bf426 fix board name on noflash build 2024-07-12 09:20:04 +01:00
Gordon Williams
6792e50183
Merge pull request #2533 from bobrippling/types/startsWith
Make optional string method arguments optional
2024-07-12 08:55:06 +01:00
Rob Pilling
04849dc882 Make optional string method arguments optional 2024-07-11 21:25:31 +01:00
Gordon Williams
717a527df0 add test for #2529 2024-07-10 14:11:47 +01:00
Gordon Williams
7c125931d5
Merge pull request #2531 from espruino/revert-2529-fix/re-statement-syntax
Revert "Fix lexing of regex at the start of a if/loop"
2024-07-10 14:07:42 +01:00
Gordon Williams
88f0553b52
Revert "Fix lexing of regex at the start of a if/loop" 2024-07-10 14:07:11 +01:00
Gordon Williams
6a312373de fix C3 build 'error' 2024-07-10 12:36:06 +01:00
Gordon Williams
491768ef3b Changelog for 28b41fd99bf8dabb841be7a3f926a0be866aaeeb 2024-07-10 12:23:28 +01:00
Gordon Williams
28b41fd99b
Merge pull request #2529 from bobrippling/fix/re-statement-syntax
Fix lexing of regex at the start of a if/loop
2024-07-10 12:22:36 +01:00
Gordon Williams
584b588690 Fix for last setWatch issue on Bangle.js when debounce!=0 2024-07-10 12:19:32 +01:00
Rob Pilling
03f293d3e7 Fix lexing of regex at the start of a if/loop
This only really appears in code (espruino/BangleApps#3498) which is minified to something like:
```javascript
var b=E.getPowerUsage(),
  c=E.getBattery(),
  a=0;

for(var d in b.device)
  /^(LCD|LED)/.test(d) || (a += b.device[d]);
```

... resulting in:

```
Uncaught SyntaxError: Got '^' expected EOF
 at line 1 col 109 in widbattpwr.wid.js
...attery(),a=0;for(var d in b.device)/^(LCD|LED)/.test(d)||(a+=b.device[...
                                        ^
 at line 1 col 110 in widbattpwr.wid.js
...ttery(),a=0;for(var d in b.device)/^(LCD|LED)/.test(d)||(a+=b.device[d...
                                        ^
```

So while the code runs fine normally, installing it via the proper route minifies it and leads to it being unable to run.

---

This is the case for both `if` statements and loops:

```javascript
>for(;0;)/a/;
Uncaught SyntaxError: Got ';' expected EOF
 at line 1 col 9
for(;0;)/a/;
        ^
 at line 1 col 12
for(;0;)/a/;
           ^
>for(x in [])/a/;
Uncaught SyntaxError: Got ';' expected EOF
 at line 1 col 13
for(x in [])/a/;
            ^
 at line 1 col 16
for(x in [])/a/;
               ^
```

while & if statements:

```javascript
>while(0)/a/;
Uncaught SyntaxError: Got ';' expected EOF
 at line 1 col 9
while(0)/a/;
        ^
 at line 1 col 12
while(0)/a/;
           ^
>if(0)/a/;
Uncaught SyntaxError: Got '/' expected EOF
 at line 1 col 6
if(0)/a/;
     ^
>if(0)3;
=undefined
```

The issue is that we don't lex regex immediately after a close-paren, so
the fix is quite straightforward.
2024-07-10 12:10:36 +01:00
Gordon Williams
13dc7e7cb3 Bangle.js: Ensure that the first button press event after a reboot is propagated to setWatch 2024-07-10 10:05:08 +01:00
Gordon Williams
0070b6f37f fix c3 build 2024-07-08 17:02:50 +01:00
Gordon Williams
5f8c058539 Attempt to build C3 binary with GitHub actions 2024-07-08 16:58:22 +01:00
Gordon Williams
785b594876
Merge pull request #2528 from espruino/dependabot/github_actions/actions/upload-artifact-4.3.4
Bump actions/upload-artifact from 4.3.3 to 4.3.4
2024-07-08 15:54:31 +01:00
dependabot[bot]
c1fddd2f3a
Bump actions/upload-artifact from 4.3.3 to 4.3.4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.3.3...v4.3.4)

---
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-07-08 01:49:44 +00:00
Gordon Williams
63cdc97cf9 doc update 2024-07-04 11:17:33 +01:00
Gordon Williams
ad25468f82 Bangle.js2: If tapping at the bottom of the screen on a menu that is <12px onscreen, choose the menu item above (#3476) 2024-07-04 11:17:28 +01:00
Gordon Williams
1efcb1c968 Puck.js/Jolt.js: Ensure that firmware update ZIPs *do not* perform a self test at boot until they pass (only hex files that are used at the factory do) 2024-07-04 09:20:53 +01:00
Gordon Williams
eacd006d4b Fix memory leak when using Pin.getInfo on a pin with ADCs (and non-reporting of analogs) 2024-07-03 19:14:42 +01:00
Gordon Williams
28b175a542
Merge pull request #2527 from bobrippling/typescript/powerusage
Add typings for E.getPowerUsage()
2024-07-03 08:39:07 +01:00
Gordon Williams
972be5ea0a Skip CRT startup code for Puck.js to save some space, as suggested in 49c88c356d (commitcomment-143719757) 2024-07-02 09:08:20 +01:00
Gordon Williams
0f471f5b3d Fix for unexpected power draw on newest batch of Bangle.js devices 2024-07-01 11:56:55 +01:00
Rob Pilling
0641f5062c Add typings for E.getPowerUsage() 2024-07-01 08:13:18 +01:00
Gordon Williams
e6afce7ce5 ensure we can still build noflash 2024-06-28 15:44:29 +01:00
Gordon Williams
30efc7ba7d revert FSMC addition for now 2024-06-28 09:08:19 +01:00
Gordon Williams
57d6b2277f Bangle.js2: After Bangle.showTestScreen, put Bangle.js into a hard off state (not soft off) 2024-06-28 08:59:14 +01:00
Gordon Williams
a308ab60f4 tweaks to help with F4 FSMC builds 2024-06-28 08:38:34 +01:00
Gordon Williams
9ef91e86a4
Merge pull request #2525 from d3nd3/touchi2c
Add "Bangle.touchRd()" and "Bangle.touchWr()"
2024-06-28 08:34:11 +01:00
Gordon Williams
7e52e1ff68
Only include touchRd/Wr for Bangle.js 2 2024-06-28 08:34:00 +01:00
Graham Fenner
e68808dfba Add 'Bangle.touchRd()', 'Bangle.touchWr()' 2024-06-27 18:32:30 +01:00
Gordon Williams
a0740a24cc changelog 2024-06-24 16:15:08 +01:00
Gordon Williams
513aba784b 2v23 release RELEASE_2V23 2024-06-24 15:57:14 +01:00
Gordon Williams
4381737d2b Minor tweak to date.now() to avoid a runtime floating point division 2024-06-24 11:19:49 +01:00
Gordon Williams
49c88c356d Add ESPR_PACKED_SYMPTR to ensure we have enough space to build Puck.js still 2024-06-24 11:19:20 +01:00
Gordon Williams
6fc3a99299 nRF52: Fix 2v22 regression that caused timekeeping to be off by ~500ppm 2024-06-24 10:40:58 +01:00
Gordon Williams
5724583ac9 Fix 2v22 regression of overlays starting at nonzero offsets (#2520) 2024-06-24 09:53:03 +01:00