könnt ihr mir helfen, bei mir will ein programm nicht laufen:
Code:#include "RP6ControlServoLib.h" int main(void) { initRP6Control(); initLCD(); initSERVO(SERVO1); startStopwatch1(); setStopwatch1(0); while(1) { if (getStopwatch1() > 1000 && getStopwatch1() < 2000) { clearLCD(); servo1_position = MIDDLE_POSITION; showScreenLCD(" MITTLERE ", " POSITION "); setLEDs(0b0110); } if (getStopwatch1() > 2000 && getStopwatch1() < 3000) { clearLCD(); servo1_position = LEFT_TOUCH; showScreenLCD(" LINKE ", " POSITION "); setLEDs(0b1000); } if (getStopwatch1() > 3000 && getStopwatch1() < 4000) { clearLCD(); servo1_position = RIGHT_TOUCH; showScreenLCD(" RECHTE ", " POSITION "); setLEDs(0b0001); } if (getStopwatch1() > 4000) { setStopwatch1(0); } task_SERVO(); } return 0; }
ich hab schon imma wieda ein paar sachen verändert (das programm läuft dann auch anders, aber nie so wie es sollte)
MfG Julian







Zitieren
Lesezeichen