DFRobot DFRduino Romeo-All in one Controller V1.1 Podręcznik - Strona 12

Przeglądaj online lub pobierz pdf Podręcznik dla Kontroler DFRobot DFRduino Romeo-All in one Controller V1.1. DFRobot DFRduino Romeo-All in one Controller V1.1 13 stron.

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