Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from smbus2 import SMBus
- import time
- import pathlib
- # reset pin is P9.23, i.e. gpio1.17
- reset_pin = pathlib.Path('/sys/class/gpio/gpio49/direction')
- reset_pin.write_text('low')
- MotorBridge = SMBus(0x4b, 2)
- ReadMode = 0
- WriteMode = 1
- DeAddr = 0X4B
- ConfigValid = 0x3a6fb67c
- DelayTime = 0.005
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement