- Sat Sep 16, 2017 10:32 am
#196191
Hi,
I have a problem with the VNH2SP30 (Monster Moto Shield), I need a code from someone who has been able to run the VNH2SP30. The SparkFun code does not work for me.
could give me a code that works please.
I have a problem with the VNH2SP30 (Monster Moto Shield), I need a code from someone who has been able to run the VNH2SP30. The SparkFun code does not work for me.
could give me a code that works please.
Code: Select all
void setup()
{
digitalWrite(4,0);
digitalWrite(7,0);
digitalWrite(8,0);
digitalWrite(9,0);
}
void loop() {
/////////////////////////////
digitalWrite(7,1);
digitalWrite(8,0);
digitalWrite(4,1);
digitalWrite(9,0);
analogWrite(5,255);
analogWrite(6,255);
delay (2000);
////////////////////////////////
digitalWrite(7,0);
digitalWrite(8,1);
digitalWrite(4,0);
digitalWrite(9,1);
analogWrite(5,255);
analogWrite(6,255);
delay (2000);
}