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)