It's new release time - a few nice improvements this time:
General
JIT compiler supports more language and is now built into all Official Espruino boards (apart from the Original)
OneWire now works reliably on nRF52 alongside Bluetooth (ops are scheduled between Bluetooth transmissions)
STM32 fixed occasional neopixel glitches caused by pin state change
Fix waveform input/output when not done at system start (a regression since 2v13)
Add Serial.flush() to allow us to wait for transmission on a device to finish
Added g.floodFill() method to allow flood fill
Added E.stopEventPropagation() to allow event propagation to be stopped with multiple X.on('...', ...)
Modified E.toString to always return a String (not necessarily flat) - fixes occasion errors in Bangle.js clocks that use it when setting up fonts, and add E.toFlatString for old behaviour
g.asImage() and g.drawImage(gfx) now use palette+transparent fields if they exist in a Graphics object
You can now send advertisements while connected with NRF.setAdvertising({},{whenConnected:true})
Add NRF.on('bond'/'advertising') events
Many other bugfixes for memory/stability/compatibility issues
Bangle.js 2
Fixed the 'Ghosting' issue that happened after the welcome message
Switched to proprietary heart rate algorithm which does a much better job when moving around
Now auto-reset compass if it was on while the watch was charging
If a Storage file called '.loading' exists, use that instead of the loading screen - there's now an app to set this up
Ensure overlays are flipped when screen is flipped 180 degrees (eg. left-handed mode) - fixes swipe-on widgets used in some clocks now
ESP32
Fixed crashes on reset/load
Enable XON/XOFF flow control (IDE can now not add pauses, so uploads quicker)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
Create headers by underlining text with ==== or ----
To *italicise* text put one asterisk each side of the word
To **bold** text put two asterisks each side of the word
Embed images by entering: ![](https://www.google.co.uk/images/srpr/logo4w.png) That's the hard one: exclamation, square brackets and then the URL to the image in brackets.
* Create lists by starting lines with asterisks
1. Create numbered lists by starting lines with a number and a dot
> Quote text by starting lines with >
Mention another user by @username
For syntax highlighting, surround the code block with three backticks:
```
Your code goes here
```
Just like Github, a blank line must precede a code block.
If you upload more than 5 files we will display all attachments as thumbnails.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It's new release time - a few nice improvements this time:
General
Serial.flush()
to allow us to wait for transmission on a device to finishg.floodFill()
method to allow flood fillE.stopEventPropagation()
to allow event propagation to be stopped with multipleX.on('...', ...)
E.toString
to always return a String (not necessarily flat) - fixes occasion errors in Bangle.js clocks that use it when setting up fonts, and addE.toFlatString
for old behaviourg.asImage()
andg.drawImage(gfx)
now use palette+transparent fields if they exist in a Graphics objectNRF.setAdvertising({},{whenConnected:true})
NRF.on('bond'/'advertising')
eventsBangle.js 2
ESP32
Espruino abcd