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

Method spi_write_32

Software/Python/gopigo3.py:297–307  ·  view source on GitHub ↗

Send a 32-bit value over SPI Keyword arguments: MessageType -- the SPI message type Value -- the value to be sent

(self, MessageType, Value)

Source from the content-addressed store, hash-verified

295 return 0
296
297 def spi_write_32(self, MessageType, Value):
298 """
299 Send a 32-bit value over SPI
300
301 Keyword arguments:
302 MessageType -- the SPI message type
303 Value -- the value to be sent
304 """
305 outArray = [self.SPI_Address, MessageType,\
306 ((Value >> 24) & 0xFF), ((Value >> 16) & 0xFF), ((Value >> 8) & 0xFF), (Value & 0xFF)]
307 self.spi_transfer_array(outArray)
308
309 def get_manufacturer(self):
310 """

Callers

nothing calls this directly

Calls 1

spi_transfer_arrayMethod · 0.95

Tested by

no test coverage detected