MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / spi_transfer_array

Method spi_transfer_array

Software/Python/gopigo3.py:234–244  ·  view source on GitHub ↗

Conduct a SPI transaction Keyword arguments: data_out -- a list of bytes to send. The length of the list will determine how many bytes are transferred. Returns a list of the bytes read.

(self, data_out)

Source from the content-addressed store, hash-verified

232 % (FIRMWARE_VERSION_REQUIRED, vfw))
233
234 def spi_transfer_array(self, data_out):
235 """
236 Conduct a SPI transaction
237
238 Keyword arguments:
239 data_out -- a list of bytes to send. The length of the list will determine how many bytes are transferred.
240
241 Returns a list of the bytes read.
242 """
243 result = GPG_SPI.xfer2(data_out)
244 return result
245
246 def spi_read_8(self, MessageType):
247 """

Callers 15

spi_read_8Method · 0.95
spi_read_16Method · 0.95
spi_read_32Method · 0.95
spi_write_32Method · 0.95
get_manufacturerMethod · 0.95
get_boardMethod · 0.95
get_idMethod · 0.95
set_ledMethod · 0.95
set_servoMethod · 0.95
set_motor_powerMethod · 0.95
set_motor_positionMethod · 0.95
set_motor_dpsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected