Got rid of non-python files

This commit is contained in:
shrkey
2016-08-13 19:23:17 +01:00
parent 9a20c84464
commit 4bcc4ff404
18 changed files with 1238 additions and 8129 deletions

21
examples/640test.py Normal file
View File

@@ -0,0 +1,21 @@
import time
from dw640HAT import dw_MotorCONTROL, dw_DCMotor
dw = dw_MotorCONTROL( addr=0x60 )
m = dw.getMotor(1)
m.run(dw_MotorCONTROL.RELEASE)
time.sleep(1)
##time.sleep(10)
print "Set forward"
m.setMotorSpeed(255)
time.sleep(1)
print "stop"
m.setMotorSpeed(0)
time.sleep(1)
print "Set reverse"
m.setMotorSpeed(-255)
time.sleep(1)
print "stop"
m.run(dw_MotorCONTROL.RELEASE)