Skip to content

Commit

Permalink
LED blinken statt leuchten
Browse files Browse the repository at this point in the history
Zur Bestätigung, dass Mainthread noch läuft
  • Loading branch information
Karsten committed Feb 20, 2013
1 parent bb1a4a5 commit 822ea50
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Project/ARMCM4-STM32F407-DISCOVERY/main.c
Expand Up @@ -60,10 +60,24 @@ int main(void)
setup_Motoren();
setup_Regelung();
setup_Datalogger();
palSetPad(GPIOD, GPIOD_LED3); /* Orange. */

//send_statustext(MAV_SEVERITY_ALERT, "Initialization finished");
while (TRUE)
{
//update_IMU();

palSetPad(GPIOD, GPIOD_LED3);
palClearPad(GPIOD, GPIOD_LED5);
chThdSleepMilliseconds(200);
palSetPad(GPIOD, GPIOD_LED4);
palClearPad(GPIOD, GPIOD_LED3); /* Orange. */
chThdSleepMilliseconds(200);
palSetPad(GPIOD, GPIOD_LED6);
palClearPad(GPIOD, GPIOD_LED4);
chThdSleepMilliseconds(200);
palSetPad(GPIOD, GPIOD_LED5);
palClearPad(GPIOD, GPIOD_LED6);
chThdSleepMilliseconds(200);

}
}

0 comments on commit 822ea50

Please sign in to comment.