MCPcopy Index your code
hub / github.com/Neotron-Compute/Neotron-Pico / write

Method write

python-test/audio_sd.py:46–49  ·  view source on GitHub ↗
(self, reg_addr, value)

Source from the content-addressed store, hash-verified

44
45
46 def write(self, reg_addr, value):
47 with self.dev:
48 data = bytearray([(reg_addr << 1) | (value >> 8) & 1, value & 0xFF])
49 self.dev.write(data)
50
51print("Configuring CODEC")
52codec = Codec(i2c)

Callers 3

audio_sd.pyFile · 0.80
card-test.pyFile · 0.80
set_cs_and_ledsFunction · 0.80

Calls

no outgoing calls

Tested by 1

set_cs_and_ledsFunction · 0.64