MikroElektronika PIC Microcontrollers PIC18 Uživatelský manuál Strana 85

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 88
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 84
Robotics experiment with PIC microcontroller l 85
Listing A11-1 : The C program for Robo-PICA to controlled with ER-4 remote
control (final)
{
Lcd_Out(2, 1, "Button A Press "); // Display message Button A press
Backward(255);Delay_ms(50);
}
else if(key=='b' || key=='B') // Button B press?
{
Lcd_Out(2, 1, "Button B Press "); // Display message Button B press
S_Right(255);Delay_ms(50);
}
else if(key=='c' || key=='C') // Button C press?
{
Lcd_Out(2, 1, "Button C Press "); // Display message Button C press
S_Left(255);Delay_ms(50);
}
else if(key=='d' || key=='D') // Button D press?
{
Lcd_Out(2, 1, "Button D Press "); // Display message Button D press
Forward(255);Delay_ms(50);
}
}
}
}
INNOVATIVE EXPERIMENT
Zobrazit stránku 84
1 2 ... 80 81 82 83 84 85 86 87 88

Komentáře k této Příručce

Žádné komentáře