|
@@ -175,7 +175,7 @@ class Arduino:
|
|
|
value = None
|
|
|
|
|
|
self.mutex.release()
|
|
|
- return int(value)
|
|
|
+ return value
|
|
|
|
|
|
def execute_array(self, cmd):
|
|
|
''' Thread safe execution of "cmd" on the Arduino returning an array.
|
|
@@ -322,11 +322,11 @@ class Arduino:
|
|
|
def beep_ring(self, value):
|
|
|
return self.execute_ack('p %d' %value)
|
|
|
|
|
|
- def detect_voltage(self, value):
|
|
|
- return self.execute_ack('g %d' %value)
|
|
|
-
|
|
|
- def detect_current(self, value):
|
|
|
- return self.execute_ack('f %d' %value)
|
|
|
+ def detect_voltage(self):
|
|
|
+ return self.execute('g')
|
|
|
+
|
|
|
+ def detect_current(self):
|
|
|
+ return self.execute('f')
|
|
|
|
|
|
def light_show(self, value):
|
|
|
return self.execute_ack('l %d' %value)
|