Page 1 of 1

Code works in Simulation but not in hardware

Posted: Thu Jan 05, 2023 1:53 pm
by 803772
I am stupid and dont know how to compile files correctly. I have a file that works and compiles correctly so i believe it might be a problem with my properties for the motor

Re: Code works in Simulation but not in hardware

Posted: Thu Jan 05, 2023 2:09 pm
by chipfryer27
Hi

In your file you have set the enable pin to the same pin used as motor "Pin A". You will need to change this to another free pin.

Have you looked at the component WiKi yet? It gives an example of how to use the motor component.

https://www.flowcode.co.uk/wiki/index.p ... C_Motor_()

Regards