From 3418ba9959c4ba5138b52ec323af71b7e5179cf2 Mon Sep 17 00:00:00 2001 From: Gleb <68512293+in4bit@users.noreply.github.com> Date: Mon, 20 Jul 2020 08:46:55 -0400 Subject: [PATCH] Corrected spelling of "sensor", and made code Python3 compatible --- lightsenser.py => lightsensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename lightsenser.py => lightsensor.py (83%) diff --git a/lightsenser.py b/lightsensor.py similarity index 83% rename from lightsenser.py rename to lightsensor.py index 9f3a60d..db1f13f 100644 --- a/lightsenser.py +++ b/lightsensor.py @@ -1,7 +1,7 @@ from lib.mBot import * def onLight(value): - print "light = ",value + print("light = ",value) if __name__ == '__main__': bot = mBot() @@ -9,4 +9,4 @@ def onLight(value): bot.startWithHID() while(1): bot.requestLightOnBoard(1,onLight) - sleep(0.5) \ No newline at end of file + sleep(0.5)