Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def _write_cmd(self, command):
  2.         self.CS.write(False)
  3.         self.RS.write(False)
  4.        
  5.         for i in range(8):
  6.             self.SDA.write(bool(command&0x80))
  7.            
  8.             self.SCL.write(False)
  9.             command <<= 1
  10.             self.SCL.write(True)
  11.        
  12.         self.CS.write(True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement