You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code:
import l293d
door = l293d.DC(22, 18, 16)
door.stop()
Result:
File "/usr/local/lib/python2.7/dist-packages/l293d/driver.py", line 162, in stop
self.__move_motor(0, after, True, 'stopping', None)
File "/usr/local/lib/python2.7/dist-packages/l293d/driver.py", line 142, in __move_motor
wait=wait, speed=speed)
File "/usr/local/lib/python2.7/dist-packages/l293d/driver.py", line 103, in drive_motor
self.pwm.stop()
AttributeError: 'NoneType' object has no attribute 'stop'
not urgent, and thank's for your code which runs morning and evening in
my chicken coop avoiding me to get up at dawn.
Stéphane
Le 21/04/2020 à 18:42, James Vickery a écrit :
Code:
import l293d
door = l293d.DC(22, 18, 16)
door.stop()
Result:
File "/usr/local/lib/python2.7/dist-packages/l293d/driver.py", line 162, in stop
self.__move_motor(0, after, True, 'stopping', None)
File "/usr/local/lib/python2.7/dist-packages/l293d/driver.py", line 142, in __move_motor
wait=wait, speed=speed)
File "/usr/local/lib/python2.7/dist-packages/l293d/driver.py", line 103, in drive_motor
self.pwm.stop()
AttributeError: 'NoneType' object has no attribute 'stop'
Solution:
Start code with:
door.clockwise(1,wait=False)
door.stop()
To initiate variables vithout running motor.
The text was updated successfully, but these errors were encountered: