You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseException("INVALID SENSOR") #harsh, but at least you'll know
245
-
if(sensorVal>self.darkVal):
246
-
returnFalse
247
-
elif(sensorVal<self.lightVal):
248
-
returnTrue
249
-
else:
250
-
raiseException("Sensor value 'Grey'")
251
285
252
286
#Buzzer: functions will sound a horn or a required frequency. Option aswell to silence the buzzer
253
287
defsilence(self):
@@ -292,6 +326,10 @@ def __init__(self):
292
326
self.RightLF=ADC(26)
293
327
#The LF circuit is setup to give a high value when a dark (non reflective) surface is in view,and a low value when a light (reflective) surface is in view.
294
328
#To aid there is a 'is it light or dark' function, and these values set the thresholds for determining that.
0 commit comments