[/code]#include "asuro.h"
int main(void)
{
unsigned char taste;
Init();
taste=PollSwitch;
StatusLED(OFF);
MotorDir(FWD,FWD);
while(1){
if(taste>0){
MotorSpeed(0,0);
StatusLED(OFF);}
else{
MotorSpeed(200,200);
}
}
return 0;
}
[/code]#include "asuro.h"
int main(void)
{
unsigned char taste;
Init();
taste=PollSwitch;
StatusLED(OFF);
MotorDir(FWD,FWD);
while(1){
if(taste>0){
MotorSpeed(0,0);
StatusLED(OFF);}
else{
MotorSpeed(200,200);
}
}
return 0;
}
Lesezeichen