def serial_stuff(self): while (True): logging.info(marm.get_outgoing_struct()) s.write(marm.get_outgoing_struct()) time.sleep(0.0417) if (s.receive_into(marm)): scaled = [v / 1000.0 for v in marm.voltages] logging.info(scaled) self.app.set_displayed(scaled)
def serial_stuff(self): while(True): logging.info(marm.get_outgoing_struct()) s.write(marm.get_outgoing_struct()) time.sleep(0.0417) if(s.receive_into(marm)): scaled = [ v / 1000.0 for v in marm.voltages] logging.info(scaled) self.app.set_displayed(scaled)
def e0(): manager.write(marm.get_outgoing_struct())