I want to use Example from MC WB for BEC-STM32G431CB.How define user code?
I used motor profiler .Saved the paramters and then while using the examples Imported those paramters.I used following as user code in main.c in while(1):
if( MCI_GetSTMState() == RUN )
{
MCI_ExecSpeedRamp(MCI_EXECSPEEDRAMP,1000,2000);
MCI_StartMotor(MCI_EXECSPEEDRAMP);
}
else;
MCI_StopMotor()
How to start motor with user code in example from MC WB?