fixing capture bugs and shader display problems

This commit is contained in:
langolierz
2018-10-13 16:25:28 +00:00
parent cbd5ee9d61
commit 20e3c00fc5
7 changed files with 37 additions and 17 deletions

View File

@@ -40,7 +40,8 @@ class AnalogInput(object):
for i in range(0,8):
if str(i) in self.analog_mappings:
this_reading = self.analog_input.read_adc(i)
if abs(this_reading - self.last_readings[i]) > 2:
if abs(this_reading - self.last_readings[i]) > 10:
#print('the diff is {}'.format(this_reading - self.last_readings[i]))
self.run_action_for_mapped_channel(i, this_reading)
self.last_readings[i] = this_reading
self.root.after(self.analog_delay, self.poll_analog_inputs)