Merge pull request #58 from dglaude/patch-1

Maximum 10 data per second + Mu plotter syntax
This commit is contained in:
Limor "Ladyada" Fried 2020-01-21 12:40:21 -05:00 committed by GitHub
commit 4621e97568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
# CircuitPython Bluefruit LE Connect Plotter Example
import time
import board
import analogio
import adafruit_thermistor
@ -29,5 +30,6 @@ while True:
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)