DFRobot DFRduino Romeo-All in one Controller V1.1 Manuale - Pagina 12

Sfoglia online o scarica il pdf Manuale per Controllore DFRobot DFRduino Romeo-All in one Controller V1.1. DFRobot DFRduino Romeo-All in one Controller V1.1 13.

DFRobot DFRduino Romeo-All in one Controller V1.1 Manuale
{
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