DFRobot DFRduino Romeo-All in one Controller V1.1 Manual page 12

Table of Contents

Advertisement

{
digitalWrite(E1, HIGH);
analogWrite(M1, (m1p));
digitalWrite(E2, HIGH);
analogWrite(M2, (m2p));
}
void setup(void)
{
int i;
for(i=6;i<=9;i++)
pinMode(i, OUTPUT);
Serial.begin(19200);
}
void loop(void)
{
if(Serial.available()){
char val = Serial.read();
if(val!=-1)
{
switch(val)
{
case 'w'://Move Forward
DriveMotorP(0xff,0xff); // Max speed
break;
case 'x'://Move Backward
DriveMotorP(0x00,0x00);
; // Max speed
break;
//Set Baud Rate

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DFRduino Romeo-All in one Controller V1.1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for DFRobot DFRduino Romeo-All in one Controller V1.1

This manual is also suitable for:

Dfr0004

Table of Contents