From af621843a13f31c451877da7003bc067ed17e86a Mon Sep 17 00:00:00 2001 From: David Glaude Date: Thu, 16 Jan 2020 00:08:07 +0100 Subject: [PATCH] Maximum 10 data per second + Mu plotter syntax This should fix issue #57 --- examples/ble_bluefruit_connect_plotter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ble_bluefruit_connect_plotter.py b/examples/ble_bluefruit_connect_plotter.py index c2ab156..251e00f 100755 --- a/examples/ble_bluefruit_connect_plotter.py +++ b/examples/ble_bluefruit_connect_plotter.py @@ -1,5 +1,6 @@ # CircuitPython Bluefruit LE Connect Plotter Example +import time import board import analogio import adafruit_thermistor @@ -29,5 +30,6 @@ def scale(value): ble.stop_advertising() while ble.connected: - print(scale(light.value), thermistor.temperature) + print((scale(light.value), thermistor.temperature)) uart_server.write('{},{}\n'.format(scale(light.value), thermistor.temperature)) + time.sleep(0.1)