Advertisement
silver2row

Old School MBC

Feb 28th, 2019
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import Adafruit_GPIO.I2C as I2C
  2. import pathlib
  3. import time
  4.  
  5. reset_pin = pathlib.Path('/sys/class/gpio/gpio49/direction')
  6. reset_pin.write_text('low')
  7.  
  8. MotorBridge = I2C.Device(0x4b, 2)
  9.  
  10. ReadMode  = 0
  11. WriteMode = 1
  12. DeAddr    = 0X4B
  13. ConfigValid =  0x3a6fb67c
  14. DelayTime = 0.005
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement