So, I am trying to use my RPi model 2B to control a DC motor with an l293d controller. I have moved onto the python3 script and imported the 'l293d' module. Here is my code...
import l293d.driver as l293d
motor1 = l293d.motor(22,18,16)
for i in range(200):
motor1.clockwise()
l293d.cleanup()
and the error that it returns is...
AttributeError: module 'l293.driver' has no attribute 'motor'
Can someone please explain why this error is occurring. Thanks.