-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathREADME
More file actions
28 lines (16 loc) · 649 Bytes
/
README
File metadata and controls
28 lines (16 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Mindstorms BlueTooth
Mindstorms bluetooth is a nodejs module to communicate with your mindstorm brick using the direct api over bluetooth.
## How to install:
npm install mindstorms_bluetooth
## How to use:
First setup your Lego Mindstoms NXT brick. It will create a serial port, get that name. On Mac OS X is it on the form: /dev/tty.NXT-DevB, or at least on my mac is it so.
Require it, initialize and use.
```js
var Nxt = require('mindstorms_bluetooth');
var nxt = new Nxt("/dev/tty.NXT-DevB");
nxt.play_tone(440, 1000);
```
# API:
Please see the nxt.js for now. I will create a better api documentation soon.
# Bigger example
TODO