Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/p/y/pyBusPirate-HEAD/pyBusPirate/BinaryMode/I2C.py   pyBusPirate(Download)
	def send_start_bit(self):
		self.port.write(b"\x02")
		self.timeout(0.1)
		return self.response()
 
	def send_stop_bit(self):
		self.port.write(b"\x03")
		self.timeout(0.1)
	def read_byte(self):
		self.port.write(b"\x04")
		self.timeout(0.1)
		return self.response(1, True)
 
	def send_ack(self):
		self.port.write(b"\x06")
		self.timeout(0.1)
	def send_nack(self):
		self.port.write(b"\x07")
		self.timeout(0.1)
		return self.response()
 

src/p/y/pyBusPirate-HEAD/pyBusPirate/BinaryMode/UART.py   pyBusPirate(Download)
	def manual_speed_cfg(self, BRGH, BRGL):
		self.port.write(b"\x02")
		self.port.write(BRGH)
		self.port.write(BRGL)
		self.timeout(0.1)
	def enter_bridge_mode(self):
		self.port.write(b"\x0F")
		self.timeout(0.1)
		return self.response(1, True)
 
	def set_cfg(self, cfg):
		self.port.write(0xC0 | cfg)
		self.timeout(0.1)
	def read_cfg(self):
		self.port.write(b"\xD0")
		self.timeout(0.1)
		return self.response(1, True)