You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,21 +5,21 @@
5
5
6
6
### Introduction
7
7
8
-
LEGO Powered Up is the successor to Power Functions, the system for adding electronics to LEGO models. Powered Up is a collection of ranges - starting with LEGO WeDo 2.0 released in 2016, LEGO Boost released in 2017, LEGO Powered Up released in 2018, and LEGO Technic CONTROL+ released in 2019. It also includes the 2018 Duplo App-Controlled Train sets.
8
+
LEGO Powered Up is the successor to Power Functions, the system for adding electronics to LEGO models. Powered Up is a collection of ranges - starting with LEGO Education WeDo 2.0 released in 2016, LEGO Boost released in 2017, LEGO Powered Up released in 2018, LEGO Technic CONTROL+ released in 2019, and LEGO Education SPIKE Prime released in 2020. It also includes the 2018 Duplo App-Controlled Train sets.
9
9
10
10
This library allows communication and control of Powered Up devices and peripherals via Javascript, both from Node.js and from the browser using Web Bluetooth.
11
11
12
12
### Node.js Installation
13
13
14
-
Node.js v8.0 required.
14
+
Node.js v8.0+ required.
15
15
16
16
```javascript
17
17
npm install node-poweredup --save
18
18
```
19
19
20
20
node-poweredup uses the Noble BLE library by Sandeep Mistry. On macOS everything should function out of the box. On Linux and Windows there are [certain dependencies which may need installed first](https://github.com/noble/noble#prerequisites).
21
21
22
-
Note: node-poweredup has been tested on macOS 10.13 and Debian/Raspbian on the Raspberry Pi 3 Model B.
22
+
Note: node-poweredup has been tested on macOS 10.15 and Debian/Raspbian on the Raspberry Pi 3 Model B.
23
23
24
24
### Compatibility
25
25
@@ -36,6 +36,12 @@ While most Powered Up components and Hubs are compatible with each other, there
36
36
| Powered Up LED Lights | <ahref="https://brickset.com/sets/88005-1/">88005</a> | Light | Yes | Yes | Yes | Yes | <ahref="https://brickset.com/sets/88005-1/">88005</a> |
37
37
| Control+ Large Motor | 22169 | Motor/Sensor |*Partial*| No | Yes | Yes | <ahref="https://brickset.com/sets/42099-1/">42099</a><br /><ahref="https://brickset.com/sets/42100-1/">42100</a> |
38
38
| Control+ XLarge Motor | 22172 | Motor/Sensor |*Partial*| No | Yes | Yes | <ahref="https://brickset.com/sets/42099-1/">42099</a><br /><ahref="https://brickset.com/sets/42100-1/">42100</a> |
39
+
| SPIKE Prime Medium Motor | 45678 | Motor/Sensor |*Partial*| Yes | Yes | Yes | <ahref="https://brickset.com/sets/45678-1/">45678</a> |
40
+
| SPIKE Prime Large Motor | 45678 | Motor/Sensor |*Partial*| Yes | Yes | Yes | <ahref="https://brickset.com/sets/45678-1/">45678</a> |
41
+
| SPIKE Prime Color Sensor | 45678 | Motor/Sensor |*Partial*| Yes | Yes | Yes | <ahref="https://brickset.com/sets/45678-1/">45678</a> |
| SPIKE Prime Force Sensor | 45678 | Motor/Sensor |*Partial*| Yes | Yes | Yes | <ahref="https://brickset.com/sets/45678-1/">45678</a> |
44
+
39
45
40
46
In addition, the Hubs themselves have certain built-in features which this library exposes.
41
47
@@ -56,6 +62,8 @@ In addition, the Hubs themselves have certain built-in features which this libra
56
62
57
63
* When used with the Boost Move Hub, the Control+ Motors do not currently accept commands.
58
64
65
+
* The SPIKE Prime Hub does not use Bluetooth Low Energy, so is not supported via this library. It is recommended you use MicroPython and Bluetooth Classic to develop for this Hub.
66
+
59
67
### Documentation
60
68
61
69
[Full documentation is available here.](https://nathankellenicki.github.io/node-poweredup/)
0 commit comments