mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-05 16:00:06 +01:00
fixing capture bugs and shader display problems
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user