From 8560b7df9b025f4069c4a7b9da336f89b531e166 Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Sat, 16 Sep 2017 14:52:37 +0300 Subject: [PATCH] Add some text-to-speech into vernie demo script --- README.md | 4 +--- demo.py | 24 ++++++++++++------------ pylgbst/__init__.py | 3 +-- pylgbst/peripherals.py | 15 +++++++++------ vernie.py | 40 ++++++++++++++++++++++++++++++++++------ 5 files changed, 57 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 1406404..ca3f2d5 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,8 @@ sudo python -c "from pylgbst.comms import *; import logging; logging.basicConfig ## Roadmap -- make notifications from pygattlib to quickly get into parallel thread, to avoid segfaults -- support working with push button +- experiment with motor commands, find what is hidden there - Give nice documentation examples, don't forget to mention logging -- make angled motors to be synchronous by default => 3-state status - make sure unit tests cover all important code - generalize getting device info + give constants (low priority) diff --git a/demo.py b/demo.py index 0155542..c928458 100644 --- a/demo.py +++ b/demo.py @@ -1,6 +1,8 @@ +# coding=utf-8 from time import sleep from pylgbst import * +from vernie import say log = logging.getLogger("demo") @@ -157,11 +159,6 @@ def demo_all(movehub): demo_motor_sensors(movehub) -def cb_log(val1, val2=None, val3=None): - pass - # log.info("V1:%s\tV2:%s\tV3:%s", unpack("= pow(2, 16): - raise ValueError("Too large value for seconds: %s", seconds) - command += pack('