mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
40 lines
892 B
Markdown
40 lines
892 B
Markdown
# Python library to interact with LEGO Move Hub
|
|
|
|
Requires `gattlib` to be installed, currently Python 2.7 only
|
|
|
|
Best way to start is to look at [demo.py](demo.py) file, and run it.
|
|
|
|
## Features
|
|
|
|
- auto-detect and connect for Bluetooth device
|
|
- auto-detects devices connected to Hub
|
|
- permanent Bluetooth connection server for faster debugging
|
|
- angled and timed movement for motors
|
|
- LED color change
|
|
|
|
## Usage
|
|
|
|
```python
|
|
from pylgbst import MoveHub
|
|
|
|
hub = MoveHub()
|
|
print(hub.get_name())
|
|
|
|
for device in hub.devices:
|
|
print(device)
|
|
```
|
|
|
|
## Roadmap
|
|
|
|
- Make it 2/3 compatible
|
|
- Add travis unit tests and coverage
|
|
- Give nice documentation examples, don't forget to mention logging
|
|
|
|
## Links
|
|
|
|
- https://github.com/JorgePe/BOOSTreveng - source of protocol knowledge
|
|
- https://github.com/RealTimeWeb/blockpy
|
|
- https://ru.wikipedia.org/wiki/App_Inventor
|
|
- https://en.wikipedia.org/wiki/Blockly
|
|
|