3542 Commits

Author SHA1 Message Date
Gordon Williams
dd2007392a 1v88 release
Had to remove 'dump()' on devices with very little flash memory (Olimexino/Micro:bit)
2017-02-16 17:27:00 +13:00
Gordon Williams
a114bc4037 more docs tweaks 2017-02-16 17:26:59 +13:00
Gordon Williams
7835cc59f8 update docs, and finally use a proper markdown parser! 2017-02-16 17:26:59 +13:00
Gordon Williams
33cfbef6e6 Move button state setup to jshResetDevices 2017-02-16 17:26:58 +13:00
Gordon Williams
a1eb7febd2 Simplified process.env on devices with little memory
nRF5x: fixed serial number reporting
2017-02-16 17:26:58 +13:00
Gordon Williams
fcff1f117f Fix micro:bit/nRF51 ctrl-c behaviour (fix #905) 2017-02-16 17:26:57 +13:00
Gordon Williams
e74b520780 oops - fix build errors for other platforms again 2017-02-16 17:26:57 +13:00
Gordon Williams
067b797b4e Make sure Puck.js users can't overwrite bootloader/softdevice (doing so would brick the board) 2017-02-16 17:26:56 +13:00
Gordon Williams
7614f73f05 set 'this' of bound functions like we do for other functions 2017-02-16 17:26:55 +13:00
Gordon Williams
460b357bcd Correct the handling of exceptions in promises
Ensure that exceptions have a 'stack' attribute if they can have children
2017-02-16 17:26:55 +13:00
Gordon Williams
275d78a1b5 Add spaces between large tab completes 2017-02-16 17:26:54 +13:00
Gordon Williams
b0bbe7b8ff Making requestDevice return a proper BluetoothDevice 2017-02-16 17:26:54 +13:00
Gordon Williams
a360caabb9 nRF5x: Added Web Bluetooth style requestDevice function 2017-02-16 17:26:53 +13:00
Gordon Williams
71ed99981f Use nrfjproj for programming if it exists 2017-02-16 17:26:53 +13:00
Gordon Williams
0f71741388 Console now prints the type of Objects if their constructor is in the root scope 2017-02-16 17:26:52 +13:00
Gordon Williams
1356389642 Cope with bind being called with 0 for the arguments array 2017-02-16 17:26:51 +13:00
Gordon Williams
d5121b5d32 start of requestdevice implementation 2017-02-16 17:26:51 +13:00
Gordon Williams
24591ac663 refactor 2017-02-16 17:26:50 +13:00
Gordon Williams
09d810e2d4 nRF5x: Added NRF.findDevices as a helper function to easily list BT devices in range 2017-02-16 17:26:50 +13:00
Gordon Williams
fdf34a4dcd Added E.dumpLockedVars() in non-release builds to help debug memory leaks in libraries 2017-02-16 17:26:49 +13:00
Gordon Williams
64cc612c23 Started using jsvObjectRemoveChild to remove some internal object properties that are undefined (frees some variables) 2017-02-16 17:26:49 +13:00
Gordon Williams
b7d0592792 oops - fix nRF51 compile 2017-02-16 17:26:48 +13:00
Gordon Williams
97d64190ee More reliability tweaks for nRF52 2017-02-16 17:26:47 +13:00
Gordon Williams
4d04a92d99 docs 2017-02-16 17:26:47 +13:00
Gordon Williams
96c6a87640 work around bug on ble_nus.c that meant is got confused by central role events 2017-02-16 17:26:46 +13:00
Gordon Williams
11ecde03c7 oops - fix documentation issue 2017-02-16 17:26:46 +13:00
Gordon Williams
ff307ecf1a enable dc-dc converter for pucks 2017-02-16 17:26:45 +13:00
Gordon Williams
dfee28808e Fix switch fall-through to default (fix #964) 2017-02-16 17:26:45 +13:00
Gordon Williams
a9d055bc04 Tweaking puck auto-test to cope with brand new batteries 2017-02-16 17:26:44 +13:00
Gordon Williams
461278de6c misc tweaks 2017-02-16 17:26:43 +13:00
Gordon Williams
34ad2c8f44 fix regression for nRF boards caused by TX pin being set to output 2017-02-16 17:26:42 +13:00
Gordon Williams
23954e6318 Adding automatic NFC start after save, and let Puck.js advertise on NFC 'out of the box' 2017-02-16 17:26:42 +13:00
Gordon Williams
d06c0a735c fix nrf52 saved code 2017-02-16 17:26:41 +13:00
Gordon Williams
3425a7811f start of notifications - still need to find cccd handle to be able to write it and start them. The rest should be almost done 2017-02-16 17:26:40 +13:00
Gordon Williams
7e25b16533 add set array value utility function 2017-02-16 17:26:40 +13:00
Gordon Williams
4736ab2455 try and get travis build for the nrf52 dk 2017-02-16 17:26:39 +13:00
Gordon Williams
e0e03a5b95 test and fix SPI hardware write (still slow at the moment because of #695) 2017-02-16 17:26:39 +13:00
Gordon Williams
ceafab9c29 Fix characteristic write on Bleno 2017-02-16 17:26:38 +13:00
Gordon Williams
285555121a (untested) hardware SPI on nRF52. Needs batch mode to make built-in DMA even remotely useful though 2017-02-16 17:26:38 +13:00
Gordon Williams
492add2b91 comments 2017-02-16 17:25:11 +13:00
Gordon Williams
96fdf45142 Change address string type so we can specify puclic or randon addresses in the string. Tidy write_params to cope with potential extra args in future 2017-02-16 17:25:10 +13:00
Gordon Williams
ea848590d2 tweaks for BLE connection 2017-02-16 17:25:10 +13:00
Gordon Williams
9bf6e010f3 add ability to read a characteristic 2017-02-16 17:25:09 +13:00
Gordon Williams
f61f33c79f Central mode getService/Characteristic - can now control another puck via Nordic UART \o/ (fix #958) 2017-02-16 17:25:09 +13:00
Gordon Williams
79da3a20df nRF5x: Change central mode API to mirror Web Bluetooth 2017-02-16 17:25:08 +13:00
Gordon Williams
aebb0d6de2 oops - re-add central capabilitties after refactor 2017-02-16 17:25:08 +13:00
Gordon Williams
9602014576 extracting general purpose bluetooth code 2017-02-16 17:25:07 +13:00
Gordon Williams
6d5066dec8 update test for puck 2017-02-16 17:25:06 +13:00
Gordon Williams
a428a686e1 nRF5x: Add Puck.js self-test code, fix issue where analogRead reset pin state 2017-02-16 17:25:06 +13:00
Gordon Williams
87b7775ab1 marginally reduce RAM side to fix flakey build on original board after adding workaround for F1's lack of pullup+opendrain hardware 2017-02-16 17:25:05 +13:00