Page 1 of 1

Step mottor control

Posted: Sun Jan 17, 2016 12:24 pm
by ragulin
Hey, Im trying to control my stepp motor. I use some code from this tutorial:
http://www.raspberrypi-spy.co.uk/2012/0 ... in-python/

When I run the code, I get this...and I dont know how to repair error in syntax in this language...:
https://www.dropbox.com/s/yzchkt562hnmi ... 2.png?dl=0

how should I fix it? Thanks

Re: Step mottor control

Posted: Sun Jan 17, 2016 12:43 pm
by rurwin
There should be a newline after the first "]".

Re: Step mottor control

Posted: Sun Jan 17, 2016 2:57 pm
by DirkS
ragulin wrote:how should I fix it? Thanks
rurwin's solution should fix that error.

FYI: just below the code there is a command to download the complete script from bitbucket (starts with 'wget').
That version of the script seems to be correct.

Re: Step mottor control

Posted: Mon Jan 18, 2016 8:06 pm
by MattHawkinsUK
Should be fixed now on the blog post. There is a strange bug in the syntax highlighter I'm using where it refuses to place a line break between those two lines. I've put a comment at the end and that seems to fix it.