scooter / Mbed 2 deprecated Scooter-uC-Programm

Dependencies:   mbed

Revision:
12:bad33209d1bb
Parent:
9:b1bf6699d610
--- a/Beleuchtungssteuerung.cpp	Tue Jun 09 11:17:32 2015 +0000
+++ b/Beleuchtungssteuerung.cpp	Tue Jun 23 10:49:55 2015 +0000
@@ -1,23 +1,23 @@
 # include "mbed.h"
 # include "Prototypen.h"
-PwmOut pwm_Licht(PWM_PORT);// Edit Pin-Port for the frontlight mosfet
+PwmOut pwm_Licht(PA_5);// Edit Pin-Port for the frontlight mosfet!!
 DigitalOut bremsen(PA_6); // Edit Pin-Port for the backlight 
-Timer timer;
+Timer timer1;
 
-Bremse_blinken(){
+void Bremse_blinken(){
     int bremse;
     bremse = break_value(); // reads break value
     bremsen=0;
     while(bremse){  // starts if break value = 1
-        timer.start();
-        if(timer.read()>0.5){   // backlight(bremsen) blinks with 1 Hz
+        timer1.start();
+        if(timer1.read() > 0.5){   // backlight(bremsen) blinks with 1 Hz
             bremsen=!bremsen;
-            timer.reset();
+            timer1.reset();
             }
         }
     }
     
-Vorderlicht_steuerung(){
+void Vorderlicht_steuerung(){
     
     pwm_Licht.period_us(10000);
     while(1){