Python code relies on indentation (left-hand white space) for its syntax. The forum software provides [_Code_ ] tag markup to preserve indentation. You can - and should - retrospectively correct your subsequent post. The [ PREVIEW ] button is useful for checking the presentation of your post.
A forum Moderator intervened and corrected your initial post. It would be better if you got it right at a second attempt.
With a simple search of these forums you will find many previous discussions that mention the error you are now reporting. One important factor is that Raspberry Pi themselves no longer recommand the use of the RPi.GPIO library. Ref: GPIO in Python - https://www.raspberrypi.com/documentati ... -in-python
A forum Moderator intervened and corrected your initial post. It would be better if you got it right at a second attempt.
With a simple search of these forums you will find many previous discussions that mention the error you are now reporting. One important factor is that Raspberry Pi themselves no longer recommand the use of the RPi.GPIO library. Ref: GPIO in Python - https://www.raspberrypi.com/documentati ... -in-python
gpiozero has a section for controlling Motors - I provided a link to the relevant documentation in my first reply to your question.Using the GPIO Zero library makes it easy to control GPIO devices with Python. The library is comprehensively documented at gpiozero.readthedocs.io.
Statistics: Posted by B.Goode — Thu May 30, 2024 6:37 am