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

Method send_buf

mpython/lib/optional/ws2812.py:83–92  ·  view source on GitHub ↗

Send buffer over SPI.

(self)

Source from the content-addressed store, hash-verified

81 self.send_buf()
82
83 def send_buf(self):
84 """
85 Send buffer over SPI.
86 """
87 if 'send' in dir(self.spi):
88 self.spi.send(self.buf)
89 else:
90 self.spi.write(self.buf)
91
92 gc.collect()
93
94 def update_buf(self, data, start=0):
95 """

Callers 1

showMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected