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
408a0007a3
Puck.js: Ensure acc/gyro doesn't cause watch events to be added to the input queue (more efficient)
2023-04-19 09:34:54 +01:00
Rob Pilling
953f33d683
Update docs with [optional] (for typescript)
2023-02-08 22:48:30 +00:00
Gordon Williams
06ec67ced7
Puck.js: Fix regression in 2v15/2v16 that stopped Puck.js v1 using magnetometer
2022-12-13 14:37:17 +00:00
Gordon Williams
5eba900152
Puck.js: Fix Puck.mag() in newest batch of Puck.js 2.1a sometimes returning -32768
2022-07-29 09:59:54 +01:00
qucchia
c5bb94bf7a
Limit documentation comments to 80 characters ( #2244 )
2022-07-27 15:32:19 +02:00
Gordon Williams
5575948185
Puck.js: Immediately after flashing new firmware, Puck.js now does a self-test and sets its BLE to PASS or FAIL
2022-06-27 17:13:42 +01:00
Gordon Williams
912aecb676
Puck.js Lite support
2022-06-17 09:22:07 +01:00
Gordon Williams
478b28d080
nRF5x: Allow 'high speed' watches via 'hispeed' argument to setWatch. Higher power consumption but detects fast (<25us) pulses.
2022-05-05 12:01:19 +01: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
efb28aca03
Puck.js: ensure self test only happens after hardware reset ( fix #2001 )
2021-06-18 10:28:25 +01:00
Gordon Williams
e0730ca707
Fix Puck.js v2 magnetometer temperature output
2021-06-08 20:40:01 +01:00
Gordon Williams
5190627174
Reinstate puck v1 specific I2C code, firmware now works fine on v1
2021-06-08 15:09:18 +01:00
Gordon Williams
91f5663dce
Puck.js 2v1 now works great, other Pucks broken!
2021-06-08 14:41:35 +01:00
Gordon Williams
307ee8c485
Attempts to bring multiple sensor support together more nicely - currently only Puck 2.1 works with this
2021-05-21 10:46:24 +01:00
Gordon Williams
7bc9136cea
Tweaks for Puck.js 2.1
2021-05-20 16:54:56 +01:00
ptcane
0de1bca18d
Update jswrap_puck.c
...
Fixed typo in function example.
2021-02-11 18:26:35 +00:00
Gordon Williams
d2ed4518a1
Puck.js: Fix regression where IR LED was left on after transmission ( fix #1969 )
2021-01-04 13:50:38 +00:00
Gordon Williams
23c5f790a7
Puck.js docs
2020-10-06 16:13:27 +01:00
Gordon Williams
62e0ec9e0e
Doc improvements
2020-09-17 09:51:01 +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
c934c211b9
docs
2020-05-29 13:12:33 +01:00
Gordon Williams
40064ecb0e
Puck.js: Put accelerometer into lower power mode by default
...
Puck.js: Switch to IRQs for magnetometer (lower power consumption)
2020-05-28 16:36:36 +01:00
Gordon Williams
46da35ab25
Puck.js v1: Fix regression that stopped Puck.IR(data) working - Puck.IR(data,D26,D25) required
...
Puck.js v2: Ensure FET is used for IR output, fix selfTest errors for IR and Blue LED
2020-04-30 10:09:17 +01:00
Gordon Williams
635084fe1b
Add ability to turn off software I2C clock stretching (not accessible from JS)
...
Puck.js: disable clock stretching for built-in sensors
2020-03-28 20:32:03 +00:00
Gordon Williams
78f421b37e
Puck.js: v2 Support: Accelerometer/Gyro/temp
...
Puck.js: Self test now sets Puck.js BLE name if there's an error
2020-03-27 21:06:12 +00:00
Gordon Williams
1c67602b1f
more puckjs tweaks
2020-03-26 08:19:35 +00:00
Gordon Williams
27606b9b66
Added direct accelerometer read/write, and using IRQ-based reads
2020-03-17 15:45:09 +00:00
Gordon Williams
7d5dc29c41
Adding new magnetometer
2020-03-17 11:47:25 +00:00
Gordon Williams
4eacb7823b
First commit of untried Puck.js code
2020-03-13 21:22:21 +00:00
Gordon Williams
dee73b5fae
abstract away custom battery percentage info, increase screen timeout to 30s
2019-10-24 11:55:46 +01:00
Gordon Williams
d662447d5a
update docs to show what class is available on
2018-10-08 14:29:11 +01:00
Gordon Williams
5d76771c11
Massive bluetooth name refactoring, potentially to help with #1445
2018-09-03 17:07:23 +01:00
Gordon Williams
2eb2c519bd
nRF52: Add E.getBattery as a more global battery percentage function, deprecate Puck.getBatteryPercentage
2018-04-17 12:47:55 +01:00
Gordon Williams
a888cd59e6
fix compile issues
2018-02-13 14:19:14 +00: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
b0f1873fff
Add an argument to reset. reset(true) will now cause all Flash memory to be cleared as well.
...
Puck.js: Holding down the button while booting (past the the 5 LED flashes) will now cause data saved in Flash to be cleared
2017-08-24 12:48:26 +01:00
Gordon Williams
d504008aa8
1v93
...
Had to make a few changes to reduce flash usage on some parts where it's scarce.
Original Espruino Board -> No 'trace' function
Other 'low flash' boards -> No 'setXIndicator' functions
2017-07-10 15:31:27 +01:00
Gordon Williams
9324e10f65
Puck.js: Added Puck.magTemp() function to get the magnetometer;'s temperature as well
2017-06-29 10:08:33 +01:00
Gordon Williams
e430538749
update Puck.capSense docs
2017-04-27 09:08:38 +01:00
Gordon Williams
dbaa11a6fb
fix self test after anode/cathode pins swapped in code
2017-04-19 10:17:48 +01:00
Gordon Williams
db6c9ab777
nRF52: Now use 'high drive' mode for GPIOs
...
Puck.js: tweak IR duty cycle, with high drive GPIO range is ~3x more
2017-03-15 09:19:51 +00:00
Gordon Williams
b565bb4df5
Puck.js: Correct reading if using analogWrite to red LED and *then* using Puck.light()
2017-03-08 15:01:40 +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
Ron Smeral
e676bcb444
Puck docs: Added detail and minor fixes to magnetometer functions
2017-01-15 15:43:17 +01:00
Gordon Williams
39617712e2
Puck.js: Tweak battery percentage calculation to try and make it more linear
...
Puck.js: Adjust Puck.light() levels based on battery percentage (and add comments)
2017-01-10 09:34:36 +00:00
Gordon Williams
bb52ec9d1e
Fix bug that caused Bluetooth/TV/USB objects to be added in devices that didn't support them ( fix #832 )
2017-01-06 09:36:59 +00:00
Gordon Williams
b5dbb14a36
nRF5x: Ensure setWatch doesn't reset pin state
...
nRF5x: Reset pin states to default on 'reset()'
nRF5x: Move advertising back to 375ms (more reliable connections)
Puck: allow Puck.mag to work while magnetometer is on
2016-11-15 11:29:32 +00:00
Gordon Williams
3c6cf9d25b
oops - fix documentation issue
2016-11-03 17:11:10 +00:00