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

Method init_spi

mpython/lib/sdcard.py:56–64  ·  view source on GitHub ↗
(self, baudrate)

Source from the content-addressed store, hash-verified

54 self.init_card(baudrate)
55
56 def init_spi(self, baudrate):
57 try:
58 master = self.spi.MASTER
59 except AttributeError:
60 # on ESP8266
61 self.spi.init(baudrate=baudrate, phase=0, polarity=0)
62 else:
63 # on pyboard
64 self.spi.init(master, baudrate=baudrate, phase=0, polarity=0)
65
66 def init_card(self, baudrate):
67

Callers 1

init_cardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected