diff --git a/README.md b/README.md index 1a8792d..6f2afb3 100644 --- a/README.md +++ b/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 - permanent Bluetooth connection server for faster debugging - angled and timed movement for motors - LED color change -# Ideas +## Ideas Make it 2/3 compatible Add travis unit tests and coverage -# Links +## Links - https://github.com/JorgePe/BOOSTreveng - source of protocol knowledge - https://github.com/RealTimeWeb/blockpy diff --git a/demo.py b/demo.py index a21c015..109fdbf 100644 --- a/demo.py +++ b/demo.py @@ -98,9 +98,10 @@ if __name__ == '__main__': connection = BLEConnection().connect() hub = MoveHub(connection) - sleep(1) + demo_all(hub) + + #sleep(1) # hub.get_name() - demo_port_cd_motor(hub) - #demo_all(hub) + #demo_port_cd_motor(hub) # demo_led_colors(hub) - sleep(1) + #sleep(1) diff --git a/setup.py b/setup.py index 91487c9..ef377bf 100644 --- a/setup.py +++ b/setup.py @@ -6,4 +6,5 @@ setup(name='pylgbst', author='Andrey Pokhilko', author_email='apc4@ya.ru', packages=['pylgbst'], + requires=['gattlib'] )