Пример #1
0
	def Transfer(self, data):
		"""
		Transfers data over the selected serial protocol.
		For use only in SPI0, SPI1, SPI2, SPI3 modes.

		@data - A string of bytes to be written.

		Returns a string of len(data) bytes.
		"""
		return _mpsse.Transfer(self.context, data)
Пример #2
0
    def Transfer(self, data):
        """
		Sends data and reads len(data) bytes in SPI mode.
		"""
        return _mpsse.Transfer(self.context, data)