3368 Commits

Autor SHA1 Mensagem Data
Rick Waldron 094bf6cceb chore: regenerated docs and readme 2023-03-23 09:19:01 -04:00
Rick Waldron 5a1c8ba1cc chore: regenerated package-lock.json 2023-03-23 09:16:09 -04:00
Rick Waldron 9234ff187c chore: update readme with actions badge 2023-03-23 09:15:57 -04:00
Rick Waldron f8a72e52cd Remove .travis.yml 2023-02-18 11:31:31 -05:00
Rick Waldron 9e828af7d3 Implement github actions 2023-02-18 11:26:19 -05:00
Christoph Labacher a028d2fc7c Remove references to deprecated “axismove” event from Joystick examples (#1811)
Fixes https://github.com/rwaldron/johnny-five/issues/1810
2023-02-12 14:27:04 -06:00
CommanderRoot f7aae7c9ef refactor: replace deprecated String.prototype.substr() (#1782)
* refactor: replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* Resolve PR comment

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2023-01-23 08:51:52 -06:00
fisher-alice bff6cdb992 Add pulse method to RGB class (#1803)
* add rgb pulse function

* clean up comments, edit Animation.render and off functions

* modify update to be writable and fix rgb Animation.render test in test/rgb.js

* fix Animation.render test in rgb.collection test

* add pulse tests in test/rgb.js

* In Animation.render add state.value arg, add logic so rgb is at full value if on() called after pulse()

* update rgb pulse comment - method can take also take Animation object as param

* add example file for led-rgb-pulse

* In rgb.js initialize state.prev values in constructor, clean up on() method, revise comments
2023-01-23 08:49:42 -06:00
fisher-alice e866780cb3 Modify Animation temporalTTL so that it is configurable (#1805)
* in animation.js temporalTTL moved from constant to Animation.Segment options to be configurable

* add unit test to check that led pulse method uses temporalTTL = 0

* default of temporalTTL remains 5000 ms
2023-01-23 08:48:40 -06:00
Scott González a6a2e2d5db Update serialport (#1808) 2023-01-23 08:45:34 -06:00
fisher-alice 5d5e301220 Assign colors, and then assign colors to keys (#1799)
* Assign colors, and then assign colors to keys

* added unit test to check RGB.prototype[Animation.keys] initialized
2022-12-03 17:03:26 -06:00
Rick Waldron b5259d8e4a Fix accelerometer test 2022-02-04 14:08:21 -05:00
Christoph Labacher c9c64b83bc Accelerometer: Pass board reference through to Expander
Fixes https://github.com/rwaldron/johnny-five/issues/1709
2021-07-25 21:07:43 +02:00
Rick Waldron a628ad9e6c 2.1.0 2021-07-06 10:54:42 -04:00
Rick Waldron 4c5cbb1410 Update master => main 2021-07-06 10:53:55 -04:00
Rick Waldron 538b94abc7 fix: Thermometer extends Withinable, not Emitter 2021-07-06 10:49:33 -04:00
Rick Waldron 6b2ca0df69 Add EventEmitter to test/.jshintrc 2021-07-06 10:49:33 -04:00
Rick Waldron d7b2b45f03 CI: remove "npm install -g npm@3" 2021-07-06 10:49:33 -04:00
Rick Waldron f24969a6b2 Dependencies: grunt@1.4.1, grunt-cli@1.4.3 2021-07-06 10:49:33 -04:00
Rick Waldron 460179bb6f Emitter: rename Suspendable -> Emitter and update everything to use our Emitter 2021-07-06 10:49:33 -04:00
Rick Waldron 8dc5651c83 Suspendable: adds class that provides a "pause" and "resume" method
We can't safely or effectively destroy objects that represent hardware or hardware states, but we need a way to temporarily prevent sensors from emitting data events. This class will move the contents of _events into a side table weakmap when pause() is called and then restore _events when resume() is called.
2021-07-06 10:49:33 -04:00
Rick Waldron 206c080379 README: update travis domain 2021-06-25 11:52:13 -04:00
Rick Waldron 5e7d653169 README: regenerate examples and readme 2021-06-25 11:48:40 -04:00
Rick Waldron 94584f8c2f Remove outdated references 2021-06-25 11:47:55 -04:00
Rick Waldron 62ef6fbedc CI: node 14 & 16 2021-06-25 10:52:36 -04:00
Rick Waldron 3a5b52d35b jshint: esversion 9 2021-06-25 10:52:23 -04:00
Rick Waldron 6cd4a19809 package-lock.json: regenerate for lockfileVersion 2 2021-06-25 10:51:39 -04:00
Rick Waldron c81033f479 Examples: more updates, 2 2020-06-11 21:08:19 -04:00
Rick Waldron 0aaa7ecc14 Examples: more updates 2020-06-11 20:47:09 -04:00
Rick Waldron 725784f313 README.md 2020-06-11 20:33:29 -04:00
Rick Waldron deea77dc58 2.0.0 2020-06-11 20:12:14 -04:00
Rick Waldron 5b6683e1ba SIP: Remove old comment 2020-06-11 20:10:00 -04:00
Rick Waldron 5bbb4e4dde Examples: regenerate for new changes 2020-06-11 20:10:00 -04:00
Katie Broida 46ada0ffbd Switch to 'change' event 2020-06-11 20:10:00 -04:00
Katie Broida 73be1ba5dc The sweep:full event was ambiguous and has been removed 2020-06-11 20:10:00 -04:00
Katie Broida 1de6b2b0ab Fix small example bugs 2020-06-11 20:10:00 -04:00
Katie Broida 5bc600692b Rick and I independently verified that this example doesn't work and shouldn't be a promoted example 2020-06-11 20:10:00 -04:00
Rick Waldron 232e4f5f2a Easing: revert to pre-ES2018 syntax. 2020-06-11 20:10:00 -04:00
Rick Waldron 6dd0a63cdd PORTED: "chore: Upgrade SerialPort to v8"
Ported from: 83f8ea703f
2020-06-11 20:10:00 -04:00
Rick Waldron c8e9ba55dd Fix mistakenly changed url 2020-06-11 20:10:00 -04:00
Rick Waldron a9499fd7f9 Board: modernization pass 2020-06-11 20:10:00 -04:00
Rick Waldron 02593c4dfc Keypad: provide Node 10 friendly "array flatten" mechanism :eyeroll: 2020-06-11 20:10:00 -04:00
Rick Waldron 10c4095350 CI: Drop Node.js <= 10 2020-06-11 20:10:00 -04:00
Rick Waldron 52244b8fa0 Examples: regenerate 2020-06-11 20:10:00 -04:00
Rick Waldron d243a8a8c9 Modernize library and test code, pt 2 2020-06-11 20:10:00 -04:00
Rick Waldron 0e735c46d3 {Accelero, Alti, Baro, Magneto, Gyro, Hyro, Thermo}meter: IMU or Multi -> SIP 2020-06-11 20:10:00 -04:00
Rick Waldron a6c36cd618 IMU -> SIP 2020-06-11 20:10:00 -04:00
Rick Waldron c5b2d6349d Examples: updates 2020-06-11 20:10:00 -04:00
Rick Waldron fbd7064dea Modernize library and test code 2020-06-11 20:10:00 -04:00
Rick Waldron b0b1a213ab 1.5.0 2020-06-11 20:06:45 -04:00