Prototype

Dependencies:   mbed ButtonEventDemo

Revision:
15:b7025faf0571
Parent:
14:0ccc3d5ca8ce
Child:
16:acf89f757b1b
--- a/Lauflicht.cpp	Mon Jan 13 17:33:47 2020 +0000
+++ b/Lauflicht.cpp	Mon Jan 13 17:48:21 2020 +0000
@@ -1,6 +1,6 @@
 #include "mbed.h"
 
-#define  BUTTON1 p14
+//#define  BUTTON1 p14
 #define INIT 0x03;
 
 
@@ -14,14 +14,16 @@
 
 int main(){
     uint8_t value=INIT;
+    int anz;
     
-    lauflicht(0,400,anz=0)   
+    lauflicht(0,400,anz=0);
 }
 
 int lauflicht(bool richtung, int time, int &anz){
     int i=0;
     uint8_t lauf=0x01;
- 
+    
+    
     if(!richtung){
         lauf= 0x08;
     }
@@ -46,10 +48,7 @@
         anz++;
     }
     return anz;
-        
 }
-    
-
 
 void nibbleLeds(int value){
     myleds=value%16;