]> git.droids-corp.org - aversive.git/blobdiff - projects/microb2010/ballboard/main.c
oranges and enhance strats
[aversive.git] / projects / microb2010 / ballboard / main.c
index 925109ff072a4bec687030616327958f5e6b8e03..e737ba3f1acbc9eeae07ce9a2e5195adee0de89b 100755 (executable)
@@ -212,8 +212,8 @@ int main(void)
                      &PORTD, 4);
        PWM_NG_INIT16(&gen.pwm2_4B, 4, B, 10, PWM_NG_MODE_SIGNED,
                      &PORTD, 5);
                      &PORTD, 4);
        PWM_NG_INIT16(&gen.pwm2_4B, 4, B, 10, PWM_NG_MODE_SIGNED,
                      &PORTD, 5);
-       PWM_NG_INIT16(&gen.pwm3_1A, 1, A, 10, PWM_NG_MODE_SIGNED,
-                     &PORTD, 6);
+       PWM_NG_INIT16(&gen.pwm3_1A, 1, A, 10, PWM_NG_MODE_SIGNED |
+                     PWM_NG_MODE_SIGN_INVERTED, &PORTD, 6);
        PWM_NG_INIT16(&gen.pwm4_1B, 1, B, 10, PWM_NG_MODE_SIGNED,
                      &PORTD, 7);
 
        PWM_NG_INIT16(&gen.pwm4_1B, 1, B, 10, PWM_NG_MODE_SIGNED,
                      &PORTD, 7);
 
@@ -255,6 +255,8 @@ int main(void)
 
        sei();
 
 
        sei();
 
+       actuator_init();
+
        printf_P(PSTR("\r\n"));
        printf_P(PSTR("Dass das Gluck deinen Haus setzt.\r\n"));
 
        printf_P(PSTR("\r\n"));
        printf_P(PSTR("Dass das Gluck deinen Haus setzt.\r\n"));