7306 Commits

Author SHA1 Message Date
Gordon Williams
bca64ccb1e Graphics: add wrapString to wrap messages to the correct length
Bangle.js: update showMessage and showPrompt with correct wrapping
2021-10-07 10:43:29 +01:00
Gordon Williams
7922aaecf7 Bangle.js: Fix Bangle.tap event regression (now works again) 2021-10-07 09:27:50 +01:00
Gordon Williams
5739c2aad4 Bangle.js: use delay and attempt to unlock SPI flash multiple times (some devices don't unlock on the first attempt) 2021-10-06 19:47:05 +01:00
Gordon Williams
d3ae4fe308 Bangle.js2: Graphics.getBPP now returns 3 2021-10-06 16:09:22 +01:00
Gordon Williams
924804259b Bangle.js: fix Bangle.getLogo memory leak 2021-10-06 15:45:37 +01:00
Gordon Williams
797428e725 Graphics: fix rotated/scaled rendering of 3 bit bitmaps (fix #2049) 2021-10-06 15:43:50 +01:00
Gordon Williams
24bfddaede Merge branch 'master' of github.com:espruino/Espruino 2021-10-06 15:10:39 +01:00
Gordon Williams
a158264bae Graphics: add imageMetrics to allow image width/height to be read
Graphics: drawImage(...,{frame:x}) can be used to draw animations
2021-10-06 15:06:34 +01:00
Gordon Williams
cfa834e1c1 Graphics: added stringMetrics to get height as well as width
Graphics: drawString now correctly middle-aligns multi-line strings
2021-10-06 14:33:48 +01:00
Gordon Williams
fdb4db347c Graphics: drawString now accepts images in-line (fix #2063) 2021-10-06 13:45:57 +01:00
Gordon Williams
a13c404b1a
Merge pull request #2064 from myxor/master
Fix link to donation page in README
2021-10-06 10:17:38 +01:00
Marco H
43a4f2f343
Merge pull request #1 from myxor/myxor-patch-1
Fix link to donation page in README
2021-10-06 11:14:04 +02:00
Marco H
67182d2c06
Fix link to donation page in README 2021-10-06 11:12:39 +02:00
Gordon Williams
3f23e98c20 Bangle.js2 VC31 improvements 2021-10-05 17:03:50 +01:00
Gordon Williams
5a6b4c941d add factory reset for emulator 2021-10-05 17:03:35 +01:00
Gordon Williams
e601885015 Support for Bangle.js 2 emulator 2021-10-04 21:14:20 +01:00
Gordon Williams
4b7182eb3b Storage test on boot only tests storage fully if the first record is empty 2021-10-04 15:01:51 +01:00
Gordon Williams
dfc51d9e75 new storage contents 2021-10-04 14:50:28 +01:00
Gordon Williams
a4476ec6ec Merge branch 'master' of github.com:espruino/Espruino 2021-10-04 14:49:24 +01:00
Gordon Williams
4f6af13a28 ensure we create fw builds 2021-10-04 11:06:26 +01:00
Gordon Williams
d74f76ff30 Bangle.js: Fix powerSave regression (should default to 'on', but didn't since 2v10) 2021-10-04 10:54:47 +01:00
Gordon Williams
29703632d2 nRF52: Send XON/XOFF when buffer is less full - reduce likelihood of FIFO_FULL with big MTUs 2021-10-01 10:52:17 +01:00
Gordon Williams
c23289e6c1 nRF52840: Fix 900uA UART power draw when shut down.
Bangle.js2 now at 0.25mA, 0.13mA when not  moved
2021-09-29 10:54:18 +01:00
Gordon Williams
7fe129b92e Merge branch 'master' of github.com:espruino/Espruino 2021-09-29 10:19:20 +01:00
Gordon Williams
86fa8babae Bangle.js: Fix color palette when rendering 3bpp -> 16bpp 2021-09-29 09:35:27 +01:00
Gordon Williams
d7d8f5c95d
Merge pull request #2059 from fanoush/f-nrf51-irqonoff-no-balancing
nrf51 - do not care for proper irq on/off call nesting
2021-09-29 09:07:11 +01:00
fanoush
dfb40730b7 do not care for proper irq on/off call balancing to keep previous semantics
with previous code callling twice jshInterruptOff and then twice jshInterruptOn would left interrupts disabled as the region variable would stay at 1
2021-09-28 22:27:31 +02:00
Gordon Williams
eea6677d25 Merge branch 'master' of github.com:espruino/Espruino 2021-09-28 16:26:53 +01:00
Gordon Williams
cd1f1da465 Bangle.js 2: Increase reported bit depth from 3->16 and perform bayer dithering when rendering
Makes icons/old apps way more usable (plus provides an easy way to get >3bpp)
2021-09-28 16:26:29 +01:00
Gordon Williams
46534a39f6 comments 2021-09-28 14:53:18 +01:00
Gordon Williams
c16714f5f8 Bangle.js 2: Idle power consumption down from 1.3mA to 0.9mA (pullups on HRM disabled when off) 2021-09-28 14:28:22 +01:00
Gordon Williams
6c478c399c
Merge pull request #2058 from fanoush/f-microbit1-nostartfiles
use -nostartfiles for microbit1 to save some more RAM
2021-09-28 13:31:37 +01:00
fanoush
3f00d6f7b1 use -nostartfiles for microbit1
saves 0x60 bytes of ram by removing impure_data array
also bump storage up to 4 pages as recent nrf51 changes made code smaller
2021-09-28 14:09:06 +02:00
Gordon Williams
6fbe9ab59a Graphics: switch RGB order for palette in asBMP for 4/8 bit images 2021-09-28 13:07:25 +01:00
Gordon Williams
3ee6b0657f
Merge pull request #2056 from fanoush/f-allow-zero-i2c
allow no HW i2c for nrf5x
2021-09-28 09:26:13 +01:00
fanoush
0fd4426049 allow no HW i2c
not acually sure about i2c slave case
2021-09-27 16:17:45 +02:00
Gordon Williams
86eba79a20
Merge pull request #2054 from fanoush/f-allow-zero-uarts
allow zero usarts in board file
2021-09-27 13:58:42 +01:00
Gordon Williams
880ea3e4b0
Merge pull request #2053 from fanoush/f-exportPtrs-to-flash
move exportPtrs to flash
2021-09-27 13:54:56 +01:00
fanoush
d5f7122603 allow zero usarts in board file
jsiHandleIOEventForUSART renamed and kept in as it is not USART specific
2021-09-27 13:06:00 +02:00
fanoush
9d2b432ade move to flash, saves 0x48 bytes of RAM
this stuff is supposed to be read only
2021-09-27 12:23:43 +02:00
Gordon Williams
0397b7d35b
Merge pull request #2052 from fanoush/f-nrf51-fixes
nrf51 fixes
2021-09-27 10:13:03 +01:00
Gordon Williams
ba897baa07 Merge branch 'master' of github.com:espruino/Espruino 2021-09-27 09:46:12 +01:00
Gordon Williams
f6f29ac68e add tensorflow to build 2021-09-27 09:46:09 +01:00
Gordon Williams
161b51ea54
Merge pull request #2051 from fanoush/f-uint32array-saveonflash
fix Uint32Array/Uint24Array when SAVE_ON_FLASH is enabled
2021-09-27 09:35:40 +01:00
fanoush
0ab52eab2c __disable_irq() with softdevice enabled triggers softdevice assert with heavy traffic
seen to be triggered from jsvFreePtrInternal when doing NRF.setScan
use sd_nvic_critical_region as per https://devzone.nordicsemi.com/f/nordic-q-a/627/what-is-the-easiest-way-to-disable-all-interrupts , maybe nrf52 could use it too?
2021-09-26 23:32:45 +02:00
fanoush
7e135320d1 FDS and FSTORAGE needed only for PEER_MANAGER
gets disabled for nrf51 -> saves both flash and ram
2021-09-26 23:19:48 +02:00
fanoush
de8c000c96 avoid unaligned hardfault on nrf51/Cortex M0 2021-09-26 22:54:35 +02:00
fanoush
49914bdf0e fix Uint32Array when SAVE_ON_FLASH 2021-09-25 23:59:18 +02:00
Gordon Williams
ca6a713d1d
Merge pull request #2050 from fanoush/f-buffersizetx-256
increase TX buffer to 256 for boards with RAM > 128KB
2021-09-25 19:39:25 +01:00
fanoush
af7d8f9b85 increase TX buffer to 256 for boards with RAM > 128KB 2021-09-25 18:25:55 +02:00