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

Method get_version_firmware

Software/Python/gopigo3.py:361–369  ·  view source on GitHub ↗

Read the firmware version Returns touple: firmware version, error

(self)

Source from the content-addressed store, hash-verified

359 return ("%d.x.x" % (version / 1000000))
360
361 def get_version_firmware(self):
362 """
363 Read the firmware version
364
365 Returns touple:
366 firmware version, error
367 """
368 version = self.spi_read_32(self.SPI_MESSAGE_TYPE.GET_FIRMWARE_VERSION)
369 return ("%d.%d.%d" % ((version / 1000000), ((version / 1000) % 1000), (version % 1000)))
370
371 def get_id(self):
372 """

Callers 4

__init__Method · 0.95
Read_Info.pyFile · 0.45

Calls 1

spi_read_32Method · 0.95

Tested by

no test coverage detected