Controlling a motor direction and speed

Thanks cr0sh it worked like a charm! I'm still new to the hardware part of Arduino and I'm learning every day :stuck_out_tongue:

As for the motor I'm controlling, it's a small lego motor just like this :