Hallo,
Ich weis nicht was ich falch mache (habe den Ausro shon dreimal geflasht), und er macht garnichts)
#include "asuro.h"
]GrussCode:#include "asuro.h" int Main(void) { unsigned char sw; sw = PollSwitch() ; MotorDir(FWD,BREAK) ; MotorSpeed(0, 0) ; if (sw & 0x01) MotorSpeed(30, 30) ; if (sw & 0x02) MotorSpeed(50, 50) ; if (sw & 0x04) MotorSpeed(80, 80) ; if (sw & 0x08) MotorSpeed(120, 120) ; if (sw & 0x10) MotorSpeed(160, 160) ; if (sw & 0x20) MotorSpeed(250, 250) ; }
Lesezeichen