uint8_t i;
uint8_t t, diff;
uint8_t tmp;
+ uint8_t cnt = 10;
/* use pull-up for inputs */
PORTC |= 0x3f;
/* LED */
DDRB = 0x02;
-#if 0 /* LED debug */
- while (1) {
+ while (cnt > 0) {
+#if 1 /* disable for LED debug only */
+ cnt--;
+#endif
LED_ON();
wait_ms(100);
LED_OFF();
wait_ms(100);
}
-#endif
/* servo outputs PD2-PD7 */
DDRD = 0xfc;