8391 Commits

Author SHA1 Message Date
Gordon Williams
0129aca033 Removing a bunch of ESP32 BLE warning messages 2023-05-03 14:14:40 +01:00
Gordon Williams
4b33eba751 ESP32: Fix reset() causing meditation error (ref #1777) 2023-05-03 13:33:41 +01:00
Gordon Williams
95fb716f11 Bangle.js2: Added Bangle.setOptions({hrmSportMode}) 2023-05-02 13:00:47 +01:00
Gordon Williams
2c30516d32 Fix memory leak if an error happens while parsing function arguments - eg print(1,2,3,JSON.parse("!%^$^"),123) 2023-04-27 10:05:02 +01:00
Gordon Williams
21eff4f221 Ensure that for(in), Object.keys and Object.getOwnPropertyNames return array indices as strings (not numbers) 2023-04-25 16:05:47 +01:00
Gordon Williams
42e336f4ac VC31 algorithm doesn't pass floats at all, so actually it doesn't care about hard/softfp
So we've removed .ARM.attributes from those files and moved back to softfp for Bangle.js 2 like other devices: https://forum.espruino.com/conversations/385922/#comment16955514
2023-04-25 12:45:41 +01:00
Gordon Williams
35b6b37ea0 update changelog 2023-04-25 12:44:10 +01:00
Gordon Williams
7e17320424 JIT: Implemented do { a } while (b);
WHILE loop is super close to working, but *somehow* has some kind of issue
2023-04-25 12:18:57 +01:00
Gordon Williams
9b30f17227 Added jsvObjectGetChildIfExists to avoid the jsvObjectGetChild(... ,0) case - saves ~300b of flash space 2023-04-25 10:59:34 +01:00
Gordon Williams
56b6a55f0b fix build issue now Vector3 is defined globally 2023-04-25 10:43:48 +01:00
Gordon Williams
eb0fb24e6e Amplify filtered HRM signal now we're not doing proper filtering, so at least it shows up in the HRM app 2023-04-25 10:35:10 +01:00
Gordon Williams
c1416f1f87 didn't save removal of debug messages 2023-04-24 15:08:40 +01:00
Gordon Williams
21e7dd8061 Bangle.js2: Switched to proprietary heart rate algorithm (from our Open Source version). It just works better. 2023-04-24 14:55:25 +01:00
Gordon Williams
82abd844c3 run actions on all branches 2023-04-24 09:14:03 +01:00
Gordon Williams
12ebb2473b Fix embedded build error introduced with 98cd7883566b1f6702fecd700f653bdf1622cd2a 2023-04-21 10:57:15 +01:00
Gordon Williams
9794ebcbae Fix ordering of Pin check in wrapper (so autocomplete and Pin prototype works) 2023-04-21 10:48:42 +01:00
Gordon Williams
e1b39f5d30 Removing some compiler warnings 2023-04-21 09:57:56 +01:00
Gordon Williams
98cd788356 Removing some compilation warnings, potentially also fixing toUpper/LowerCase for non-ASCII characters 2023-04-20 15:02:26 +01:00
Gordon Williams
7f44a96390 comment 2023-04-19 15:45:04 +01:00
Gordon Williams
0901a4db7d Waveform: Fix waveform input/output when not done at system start - Since 2v13 start time was set in the past 2023-04-19 10:44:39 +01:00
Gordon Williams
c55f8a068f Removing some compiler warnings 2023-04-19 10:05:35 +01:00
Gordon Williams
408a0007a3 Puck.js: Ensure acc/gyro doesn't cause watch events to be added to the input queue (more efficient) 2023-04-19 09:34:54 +01:00
Gordon Williams
5c306cf493
Merge pull request #2351 from bobrippling/ts-pipe-options
Add `PipeOptions` to `pipe()` typescript definitions
2023-04-19 09:01:51 +01:00
Rob Pilling
9d13de0122 Add PipeOptions to pipe() typescript definitions 2023-04-19 08:21:08 +01:00
Gordon Williams
b990a79d3f
Merge pull request #2350 from mariusGundersen/storageFile-pipe
add pipe method to StorageFile
2023-04-18 13:16:19 +01:00
Marius Gundersen
0eb6240992
add pipe method to StorageFile
This adds the pipe method to storage files, so they can be piped to for example an http request or response. 

I have tested and this seems to work:
```js
const logFile = Storage.open("log", "r");

// without this change
E.pipe(logFile, req);

// with this change:
logFile.pipe(req)
```
2023-04-18 12:17:11 +02:00
Gordon Williams
3fbcd63bc3 Merge branch 'master' of github.com:espruino/Espruino 2023-04-12 15:18:43 +01:00
Gordon Williams
4a1bc62b13 Tweak to previous neopixel 'fix' to make it less likely to cause problems (that would require an SPI.setup) 2023-04-12 15:15:15 +01:00
Gordon Williams
f9055e691a
Merge pull request #2348 from bobrippling/setui-types
Split `setUI` types into overloaded functions
2023-04-12 09:04:36 +01:00
Rob Pilling
87eeaad3d2 Add ShortBoolean type
This allows us to use 1 or 0 instead of true or false.
2023-04-11 18:14:17 +01:00
Rob Pilling
1c85365a8f clearWatch: optional first argument 2023-04-08 08:31:06 +01:00
Rob Pilling
d7bcc43de8 Make removeAllListeners() first argument optional 2023-04-07 17:03:46 +01:00
Rob Pilling
5ab6224954 Split setUI types into overloaded functions
This prevents erroneous usage, e.g. a callback with "clock" or expecting
`undefined` to be passed to a "clockupdown" callback.

It also "blesses" `{mode: "clock" | "updown" | ...}` with a subset of
options which are handled by `setUI` (`remove` and `back`).
2023-04-07 16:50:32 +01:00
Gordon Williams
4a10815245 docs 2023-04-05 16:20:54 +01:00
Gordon Williams
b6f8105b63 Bangle.js2: Ensure that changing a menu item when half-scrolled off screen doesn't overwrite widgets 2023-04-05 10:47:19 +01:00
Gordon Williams
2883f65118 STM32: neopixel: Fix small glitches in the output pin just before writes that could throw off APA10x LEDs
https://forum.espruino.com/conversations/385159/#comment16925437
2023-03-31 12:33:06 +01:00
Gordon Williams
4ef8ce83f1 Fix making docs if unicode is in C files 2023-03-31 11:26:27 +01:00
Gordon Williams
ceec65b57d nRF52: Fix regression after whenConnected:true addition. NRF.wake() will now not start advertising when connected unless whenConnected:true is set. 2023-03-30 13:27:39 +01:00
Gordon Williams
fffcf85b12 Graphics: Ensure fillPoly clips out of range (+/-2048) coordinates (fix https://github.com/espruino/BangleApps/issues/2661) 2023-03-27 11:34:18 +01:00
Gordon Williams
4e7bae1c77 Pixl.js: Switch to slower ROM-saving sin/cos/atan/atan2 (running out of free space after JIT enabled) 2023-03-22 16:07:15 +00:00
Gordon Williams
fd0963dcbc nRF52: Add NRF.on('bond'/'advertising') events to keep track of BLE status more easily 2023-03-22 14:36:24 +00:00
Gordon Williams
2a276a8e47 Fix Bangle.js 2 build (different NRF API) 2023-03-22 11:59:50 +00:00
Gordon Williams
5a18c873d6 nRF52: OneWire accesses are now scheduled with the Timeslot API to avoid the softdevice interfering (fix #1831) 2023-03-22 11:49:17 +00:00
Gordon Williams
9ef21c97e8 Fix 'ghosting' issue on Welcome screen (forcing timeout/lcdPower/etc at boot could disable the EXTCOMIN toggle) 2023-03-22 09:34:38 +00:00
Gordon Williams
4e1b94d530 Merge branch 'master' of github.com:espruino/Espruino 2023-03-21 09:59:08 +00:00
Gordon Williams
7be20f396a update gitattributes with new-style line ending info 2023-03-21 09:50:31 +00:00
Gordon Williams
10e02c1ce4
Merge pull request #2344 from thyttan/hardware-reference
[jswrap_bangle.c] add info re touch event xy.type
2023-03-13 18:33:21 +00:00
thyttan
d41aa58ab5 add info re touch event xy.type 2023-03-13 19:05:19 +01:00
Gordon Williams
9841d5401d disable whenConnected for MICROBIT1 (too little free memory) 2023-03-13 11:39:25 +00:00
Gordon Williams
a37c24f682 nRF52: Add NRF.setAdvertising({},{whenConnected:true}) to allow advertisements to be sent while a connection is active
+            nRF52: Fix NRF.getSecurityStatus's 'advertising' field (only appeared when connected previously)
2023-03-13 11:30:38 +00:00