From e4ed6d3904848e98962dcfd2b5c57c7af4ec0035 Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Fri, 15 Mar 2019 18:52:34 +0300 Subject: [PATCH 1/3] Fix #25 --- examples/demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/demo.py b/examples/demo.py index b911592..6093875 100644 --- a/examples/demo.py +++ b/examples/demo.py @@ -14,7 +14,7 @@ def demo_led_colors(movehub): # LED colors demo log.info("LED colors demo") movehub.color_distance_sensor.subscribe(lambda x, y: None) - for color in COLORS.keys()[1:] + [COLOR_BLACK]: + for color in list(COLORS.keys())[1:] + [COLOR_BLACK]: log.info("Setting LED color to: %s", COLORS[color]) movehub.led.set_color(color) sleep(1) From 5f209ac7e68051c31d749949fd42be371e930459 Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Fri, 15 Mar 2019 18:55:08 +0300 Subject: [PATCH 2/3] cosmetics --- examples/vernie/android_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vernie/android_remote.py b/examples/vernie/android_remote.py index c270afb..caae581 100644 --- a/examples/vernie/android_remote.py +++ b/examples/vernie/android_remote.py @@ -2,7 +2,7 @@ To use it, install this android app: https://play.google.com/store/apps/details?id=com.mscino.sensornode Then open app on phone and choose "Stream" => "Stream live data (XML)". -Check the "Accelerometer" option and put your IP address into corresponding filed. +Check the "Accelerometer" option and put your IP address into corresponding field. Specify port there as 8999, and enable streaming. Then run this script on computer. """ import logging From 9ff6d0b4ede18e33a249a2d319f3d136b5a0066b Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Tue, 19 Mar 2019 10:48:41 +0300 Subject: [PATCH 3/3] change relative import relates to issue 23 --- examples/vernie/android_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vernie/android_remote.py b/examples/vernie/android_remote.py index caae581..90dd57d 100644 --- a/examples/vernie/android_remote.py +++ b/examples/vernie/android_remote.py @@ -9,7 +9,7 @@ import logging import socket import time -from . import Vernie +from examples.vernie import Vernie from pylgbst.peripherals import ColorDistanceSensor host = ''