MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / _write_cmd

Method _write_cmd

mpython/extFlash/lib/spiflash.py:91–93  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

89 return self.sectorsize
90
91 def _write_cmd(self, val):
92 self._buf[0] = val
93 self._spi.write(self._buf)
94
95 def _write_addr(self, cmd, addr):
96 self._addrbuf[0] = cmd

Callers 4

getidMethod · 0.95
waitMethod · 0.95
flash_writeMethod · 0.95
flash_eraseMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected