DFRobot DFR0004 Handmatig - Pagina 12
Blader online of download pdf Handmatig voor {categorie_naam} DFRobot DFR0004. DFRobot DFR0004 13 pagina's. Dfrduino romeo-all in one controller
Ook voor DFRobot DFR0004: Handmatig (11 pagina's), Handmatig (16 pagina's)
{
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