コード例 #1
0
 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)
コード例 #2
0
	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)
コード例 #3
0
def e0():
    manager.write(marm.get_outgoing_struct())
コード例 #4
0
def e0():
	manager.write(marm.get_outgoing_struct())