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:
parent
c7406164ed
commit
ec33f03327
@ -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
0
examples/__init__.py
Normal 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
|
@ -1,4 +1,4 @@
|
|||||||
from vernie import *
|
from examples.vernie import *
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
from vernie import *
|
from examples.vernie import *
|
||||||
|
|
||||||
robot = Vernie()
|
robot = Vernie()
|
||||||
|
|
@ -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')
|
@ -1,4 +1,4 @@
|
|||||||
from vernie import *
|
from examples.vernie import *
|
||||||
|
|
||||||
robot = Vernie()
|
robot = Vernie()
|
||||||
running = True
|
running = True
|
@ -1,4 +1,4 @@
|
|||||||
from vernie import *
|
from examples.vernie import *
|
||||||
|
|
||||||
robot = Vernie()
|
robot = Vernie()
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user