so ungefähr :
mfg EDHCode:#include "asuro.h" unsigned char taste; ///////////////////////////////////////////// int main(void) { Init(); while(1) { taste = PollSwitch(); if (taste>0) { MotorDir(RWD,RWD); MotorSpeed(100,100); StatusLED(RED); BackLED(OFF,OFF); } else { MotorDir(FWD,FWD); MotorSpeed(150,150); StatusLED(GREEN); BackLED(ON,ON); } } return 0; }
Lesezeichen