mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
mention dependency
This commit is contained in:
parent
f2d78cd052
commit
355a444089
12
README.md
12
README.md
@ -1,18 +1,22 @@
|
|||||||
Best way to start is to look at [demo.py](demo.py) file, or maybe run it.
|
# Python library to interact with LEGO Move Hub
|
||||||
|
|
||||||
# Features
|
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-detect and connect for Bluetooth device
|
||||||
- permanent Bluetooth connection server for faster debugging
|
- permanent Bluetooth connection server for faster debugging
|
||||||
- angled and timed movement for motors
|
- angled and timed movement for motors
|
||||||
- LED color change
|
- LED color change
|
||||||
|
|
||||||
# Ideas
|
## Ideas
|
||||||
|
|
||||||
Make it 2/3 compatible
|
Make it 2/3 compatible
|
||||||
Add travis unit tests and coverage
|
Add travis unit tests and coverage
|
||||||
|
|
||||||
# Links
|
## Links
|
||||||
|
|
||||||
- https://github.com/JorgePe/BOOSTreveng - source of protocol knowledge
|
- https://github.com/JorgePe/BOOSTreveng - source of protocol knowledge
|
||||||
- https://github.com/RealTimeWeb/blockpy
|
- https://github.com/RealTimeWeb/blockpy
|
||||||
|
9
demo.py
9
demo.py
@ -98,9 +98,10 @@ if __name__ == '__main__':
|
|||||||
connection = BLEConnection().connect()
|
connection = BLEConnection().connect()
|
||||||
|
|
||||||
hub = MoveHub(connection)
|
hub = MoveHub(connection)
|
||||||
sleep(1)
|
demo_all(hub)
|
||||||
|
|
||||||
|
#sleep(1)
|
||||||
# hub.get_name()
|
# hub.get_name()
|
||||||
demo_port_cd_motor(hub)
|
#demo_port_cd_motor(hub)
|
||||||
#demo_all(hub)
|
|
||||||
# demo_led_colors(hub)
|
# demo_led_colors(hub)
|
||||||
sleep(1)
|
#sleep(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user