1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00

Move demo files

This commit is contained in:
Andrey Pohilko 2017-09-30 18:31:16 +03:00
parent c7406164ed
commit ec33f03327
11 changed files with 9 additions and 8 deletions

View File

@ -4,9 +4,9 @@ _Move Hub is central controller block of [LEGO® Boost Robotics Set](https://www
In fact, Move Hub is just Bluetooth hardware, all manipulations are done with commands passed through Bluetooth Low Energy (BLE) wireless protocol. One of ways to issue these commands is to write Python program using this library. In fact, Move Hub is just Bluetooth hardware, all manipulations are done with commands passed through Bluetooth Low Energy (BLE) wireless protocol. One of ways to issue these commands is to write Python program using this library.
Best way to start is to look into [`demo.py`](demo.py) file, and run it (assuming you have installed library). Best way to start is to look into [`demo.py`](examples/demo.py) file, and run it (assuming you have installed library).
If you have Vernie assembled, you might run scripts from [`vernie`](vernie/) directory. If you have Vernie assembled, you might run scripts from [`vernie`](examples/vernie/) directory.
Demonstrational video: Demonstrational video:

0
examples/__init__.py Normal file
View File

View File

@ -9,8 +9,8 @@ import logging
import socket import socket
import time import time
from examples.vernie import Vernie
from pylgbst.peripherals import ColorDistanceSensor from pylgbst.peripherals import ColorDistanceSensor
from vernie import Vernie
host = '' host = ''
port = 8999 port = 8999

View File

@ -1,4 +1,4 @@
from vernie import * from examples.vernie import *
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)

View File

@ -1,4 +1,4 @@
from vernie import * from examples.vernie import *
robot = Vernie() robot = Vernie()

View File

@ -1,6 +1,7 @@
from vernie import *
import six import six
from examples.vernie import *
robot = Vernie() robot = Vernie()
robot.say('type commands') robot.say('type commands')

View File

@ -1,4 +1,4 @@
from vernie import * from examples.vernie import *
robot = Vernie() robot = Vernie()
running = True running = True

View File

@ -1,4 +1,4 @@
from vernie import * from examples.vernie import *
robot = Vernie() robot = Vernie()