Skip to content

Commit 9429dfc

Browse files
committed
Added some details for using it as module
1 parent 9cc7622 commit 9429dfc

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@ Some scripts to access the data streamed by the **Neurosky Mindwave Mobile** Hea
22

33
Requirements:
44
* [PyBluez](http://code.google.com/p/pybluez/), see their [documentation](http://code.google.com/p/pybluez/wiki/Documentation) for installation instructions :)
5+
For Ubuntu, installation might work like this:
6+
```
7+
sudo apt-get install libbluetooth-dev
8+
pip install pybluez
9+
```
510

6-
Usage in python:
11+
12+
If you want to install the library as a module, do:
13+
```
14+
python setup.py install
15+
```
16+
from the root folder of the repository.
17+
18+
Afterwards, you can use it within python like this:
719

820
```python
21+
from mindwavemobile.MindwaveDataPointReader import MindwaveDataPointReader
922
mindwaveDataPointReader = MindwaveDataPointReader()
1023
# connect to the mindwave mobile headset...
1124
mindwaveDataPointReader.start()
1225
# read one data point, data point types are specified in MindwaveDataPoints.py'
1326
dataPoint = mindwaveDataPointReader.readNextDataPoint()
14-
```
27+
```

0 commit comments

Comments
 (0)