6569 Commits

Author SHA1 Message Date
Gordon Williams
56f6ef608f Now have comms to modem 2020-06-09 16:48:31 +01:00
Gordon Williams
35ae61cbca initial RAK5010 - accelerometer/opto working 2020-06-09 16:31:04 +01:00
Gordon Williams
8b23e40928 SDK15 build tweaks 2020-06-09 14:36:53 +01:00
Gordon Williams
3cb3c31e29 remove unused define 2020-06-09 13:24:55 +01:00
Gordon Williams
fbaa3bbcf5 Re-add Graphics.quadraticBezier for Bangle.js, move to integer math to halve fn size 2020-06-09 08:53:05 +01:00
Gordon Williams
a34d01b195 use jsvReadConfigObject for jswrap_graphics_transformVertices 2020-06-09 08:23:39 +01:00
Gordon Williams
9f233fd140 Re-add quadraticBezier to Bangle.js 2020-06-09 07:54:00 +01:00
Gordon Williams
33d7cc503d Merge branch 'master' of github.com:espruino/Espruino 2020-06-09 07:52:37 +01:00
Gordon Williams
561f7b0af8
Merge pull request #1855 from nebbishhacker/transformVertices
Add Graphics.transformVertices
2020-06-09 07:51:58 +01:00
Ben Whittaker
ff2a16a9b6 Add Graphics.transformVertices
Adds a method to the graphics class for applying a transformation to a
list of points. This method can be used alongside drawPoly to translate,
rotate and scale complex polygons in real time.
2020-06-08 18:29:04 -04:00
Gordon Williams
e206a837ec Bangle.js: Fix occasional execution errors when executing from Flash (fix #1854) 2020-06-08 14:51:29 +01:00
Gordon Williams
41ed224d41 Fix formatting regression in linux build output when there are errors 2020-06-08 14:50:05 +01:00
Gordon Williams
3bfdf4daeb Fix double unlock in load(filename) 2020-06-08 14:49:35 +01:00
Gordon Williams
e12bce5717 Merge branch 'master' of github.com:espruino/Espruino 2020-06-08 09:12:18 +01:00
Gordon Williams
dfc70eb2fc Bangle.js: Now warn if GPS data overflows (fix #1847) 2020-06-08 09:12:09 +01:00
Gordon Williams
a05ef93718
Merge pull request #1851 from nebbishhacker/vector-font
Add lowercase eth (ð) to vector font
2020-06-08 08:54:33 +01:00
Ben Whittaker
960bf6a522 Add lowercase eth (ð) to vector font 2020-06-06 00:40:27 -04:00
Gordon Williams
d15ced8073
Merge pull request #1850 from FransM/spiFlashReadWrite
Eliminate spiFlashReadWrite
2020-06-05 14:35:48 +01:00
Frans Meulenbroeks
7f42949c3c Eliminate spiFlashReadWrite
This is only called once, and can also be done with a Write followed by a Read
2020-06-05 15:17:15 +02:00
Gordon Williams
46796ea7ad Bangle.js: Ensure BTN3 exits debug mode (fix #1842) 2020-06-05 11:56:39 +01:00
Gordon Williams
b773ff3d0d Merge branch 'master' of github.com:espruino/Espruino 2020-06-05 09:53:05 +01:00
Gordon Williams
49b4b523ac Bangle.js: Improve SPI flash speed by with specific function for reading and keeping CS asserted ( #1849) 2020-06-05 09:52:56 +01:00
Gordon Williams
da18d5bea5
Merge pull request #1848 from nebbishhacker/vector-font
Reduce size of vector font
2020-06-05 09:24:53 +01:00
Gordon Williams
15de460b31 Update showMenu docs to be more explicit, and remove duplicate entries in docs 2020-06-05 08:08:04 +01:00
Ben Whittaker
1152a7bfd2 Change how vector font is stored
Instead of storing everything in a single array delimited by magic
values, have separate arrays containing
- vertices for each polygon
- # of vertices for each polygon
- polygon indices for each char
- # of polygon indices for each char

This arrangement means that multiple char can use reference the same
polygons. build_vector_font.js takes advantage of this by
normalizing and deduplicated polygons where it can.

Shaves exactly one kilobyte from the final build.
2020-06-04 20:54:17 -04:00
Gordon Williams
4ed174d954 Tensorflow updated to current 'master' version 2020-06-04 16:10:42 +01:00
Gordon Williams
5b9333366a Increase message length to include CRC: https://github.com/espruino/Espruino/pull/1844#issuecomment-638176941 2020-06-03 14:28:52 +01:00
Gordon Williams
162d6a3e0f Bangle.js: Save RAM in GPS handling, allow arbitrary length data returned (fix #1843)Reduce GPS buffer size 2020-06-03 13:32:22 +01:00
Gordon Williams
1917912c31
Merge pull request #1845 from espruino/revert-1844-GPS-raw-UBX
Revert "GPS-raw event: check and return UBX protocol checksums"
2020-06-03 13:25:18 +01:00
Gordon Williams
c57c0181a3
Revert "GPS-raw event: check and return UBX protocol checksums" 2020-06-03 13:11:19 +01:00
Gordon Williams
11695b6d89
Merge pull request #1844 from ikkala/GPS-raw-UBX
GPS-raw event: check and return UBX protocol checksums
2020-06-03 13:08:41 +01:00
Tuukka Ikkala
3643a73365 GPS-raw event: check and return UBX protocol checksums 2020-06-03 15:01:44 +03:00
Gordon Williams
54335b5d2c
Merge pull request #1839 from ikkala/GPS-raw-arraybuffer
GPS-raw event: handle UBX protocol
2020-06-02 09:37:34 +01:00
Gordon Williams
81ca2bd0ef
Merge pull request #1841 from nebbishhacker/vector-font
Include accented characters directly in fontmap
2020-06-02 09:11:07 +01:00
Tuukka Ikkala
34ff9e2e8a GPS-raw: Revert event type back to string 2020-06-02 11:04:39 +03:00
Gordon Williams
ac5b374741
Merge pull request #1837 from ikkala/optimize-Dockerfile
Use Dockerfile layers to cache dependency install
2020-06-02 09:03:53 +01:00
Tuukka Ikkala
017a5e479c Remove unneeded step COPY ./targets /espruino/targets 2020-06-02 10:57:48 +03:00
Ben Whittaker
2f44530005 Include accented characters directly in fontmap 2020-06-01 19:52:01 -04:00
Tuukka Ikkala
ac2693ce72 Merge branch 'master' of https://github.com/espruino/Espruino into GPS-raw-arraybuffer 2020-06-01 18:47:37 +03:00
Tuukka Ikkala
0574da3143 GPS-raw event ArrayBuffer, handle UBX protocol
Bangle.js: Changed GPS-raw event type from string to ArrayBuffer
and handle u-blox UBX Protocol messages.

Fixes #1838
2020-06-01 18:44:16 +03:00
Tuukka Ikkala
3716cc5647 Use Dockerfile layers to cache dependency install
Before dependency install (provision.sh ALL), copy only required files.
Only after that, copy rest of the source code (COPY . /espruino) that
changes more often.
This way usually only lines starting from COPY . /espruino will
be executed.
2020-06-01 17:32:40 +03:00
Gordon Williams
37bfe87aa6 I2C: Improve software I2C (now quickly forces I2C high before pullup, to help improve clock speed) 2020-06-01 15:28:55 +01:00
Gordon Williams
549c35b04c Merge branch 'master' of github.com:espruino/Espruino 2020-06-01 15:22:45 +01:00
Gordon Williams
3daa7c4061 Puck.js: Fix Puck.magTemp();
Puck.js v1: Fix magnetometer reading after puck.magOn (2v05 regression) - use old software I2C implementation
2020-06-01 15:21:54 +01:00
Gordon Williams
f39c589bc4
Merge pull request #1834 from FransM/gccinstall
Correct instruction for gcc install
2020-06-01 08:29:16 +01:00
Gordon Williams
41cf366022
Merge pull request #1836 from nebbishhacker/vector-font
Reduce poly count and fix missing chars in vector font
2020-06-01 08:08:23 +01:00
Gordon Williams
8960913143
Merge pull request #1835 from nebbishhacker/fillpoly
fillPoly tweaks
2020-06-01 08:03:56 +01:00
Ben Whittaker
49abcde91e Include chars 247-254 in vector_font.c 2020-06-01 00:56:29 -04:00
Ben Whittaker
7b84690744 Reduce number of polygons in vector font
Now that https://github.com/espruino/Espruino/issues/1796 is fixed, a
lot of polygons can be merged together. Should save about 300 bytes.
2020-06-01 00:53:49 -04:00
Ben Whittaker
d31fa08e4e Add tests that use fillPoly and drawPoly together 2020-05-31 21:41:05 -04:00