(self, reg_addr, value)
| 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 | |
| 51 | print("Configuring CODEC") |
| 52 | codec = Codec(i2c) |
no outgoing calls