You are reading a single comment by @Ollie and its replies.
Click here to read the full conversation.
-
I must apologise too - for some reason I've had a mental block re this. It is very simple now you've pointed me at digitalWrite and the high/lo capability of that - and I feel a bit foolish. Re the reference to 4 or 6 pins in groups of 2 or 3 - you're suggesting using those to give me enough current for the motor, effectively parallel connections?
...you put your (Espruino) pins in an array and output an array of all lows for stop, 3 highs and 3 lows for one direction, and 3 lows and 3 highs for the other direction... see digitalWrite() reference.