30 Commits

Author SHA1 Message Date
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
qucchia
0ff89a939a More typos 2022-07-27 16:23:58 +02:00
qucchia
c5bb94bf7a Limit documentation comments to 80 characters (#2244) 2022-07-27 15:32:19 +02:00
qucchia
ff3fc6dcdf Fix minor typos 2022-07-22 11:48:00 +02:00
Gordon Williams
8861b27954 Util Timer now runs independently of system time. More accurate on nRF52 (fix #2125)
Also remove (mostly) duplicated jshPinPulse
2022-03-03 16:43:00 +00:00
Gordon Williams
ba7ec5b918 WIP - first stab at fixing nRF52 timer accuracy issue - more reliable now but pulse trains still can be off, and PWM broken 2022-03-02 17:04:46 +00:00
Gordon Williams
9a1dd6ebe5 Update docs 2020-10-13 11:27:26 +01:00
Gordon Williams
dfe2f24943 Tweaks to enable micro:bit 1 and 2 builds 2020-10-13 10:50:34 +01:00
Gordon Williams
96441b5861 Added global Microbit object, with accelOn, play, record, and proper gesture handling 2020-10-07 10:51:24 +01:00
Gordon Williams
d460db0bdb Fixed mic in (added more gain), and added accelerometer gesture detector code 2020-10-02 15:32:38 +01:00
Gordon Williams
f0d60a0831 First hack at microbit2 port 2020-10-02 12:36:30 +01:00
Gordon Williams
486afea7ab Removed custom fonts for SVAE_ON_FLASH devices
Fixed BBC micro:bit show() regression from 2v07
2020-10-01 09:48:51 +01:00
Gordon Williams
c2f9a929aa micro:bit: Re-added tab complete (enough space now)
micro:bit: Added a fake pin for LED/LED1 that uses the LED matrix
2020-08-05 12:13:07 +01:00
Gordon Williams
7cab67b731 micro:bit: Add support for LSM303 accelerometer/magnetometer 2020-07-30 14:29:14 +01:00
Gordon Williams
aa09ad4f97 jsvNewIterator now has an option to iterate over sparse arrays as if they weren't sparse
Fixed some built-in functions that misbehaved when given sparse arrays
2017-11-24 12:47:43 +00:00
Gordon Williams
5018128bac Fix jstExecuteTaskChecker bug, and allow jstExecuteFn to take a userdata argument
Puck.js: Reduce IR LED to 10% duty cycle
            Puck.js: Allow Puck.IR to take pins for external IR LED (fix #927)
2017-01-25 15:14:07 +00:00
Gordon Williams
8cef796d92 micro:bit compile fixes 2016-08-05 10:34:51 +01:00
Gordon Williams
32712e8b00 Add built in IR send function (tidier than pulling in JS code) 2016-08-02 14:16:13 +01:00
Gordon Williams
3f733c67a4 Fix micro:bit compass problems (fix #864) 2016-06-15 14:55:54 +01:00
Gordon Williams (u36)
4fb7805940 allow delayed function execute, just once 2016-04-01 16:53:31 +01:00
Gordon Williams
a0edddd257 Fix show() for boolean/float numbers 2016-03-29 09:32:01 +01:00
Gordon Williams
80d89cc5b2 Added better micro:bit that works well with Graphics 2016-03-04 16:29:49 +00:00
Gordon Williams
5dd5d901d1 replace NewWithFlags with jsvNewXXX - saves a few bytes by killing repetition 2016-03-04 12:54:18 +00:00
Gordon Williams
6c6dc46429 tweaks for better docs 2016-02-25 11:29:08 +00:00
Gordon Williams
6da366fdd7 microbit compass 2016-01-14 15:29:42 +00:00
Gordon Williams
53593090d2 trying to squash some warnings, fix I2C tx 2016-01-14 13:43:00 +00:00
Gordon Williams
d5b058d2cf first steps towards accelerometer 2016-01-13 11:11:41 +00:00
Gordon Williams (u36)
400daaef0c sort out utility timer for small time periods, and get the microbit display using it for refreshes 2015-11-21 17:53:54 +00:00
Gordon Williams
81f5eed0b2 tidyup, add basic microbit display support 2015-11-20 15:38:13 +00:00