Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _write_cmd(self, command):
- self.CS.write(False)
- self.RS.write(False)
- for i in range(8):
- self.SDA.write(bool(command&0x80))
- self.SCL.write(False)
- command <<= 1
- self.SCL.write(True)
- self.CS.write(True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement