Main

Dependencies:   mbed

Revision:
1:2513045fcb59
Parent:
0:4c39745fe0c2
Child:
2:8784f9c96dca
--- a/main.cpp	Mon Jan 13 17:14:46 2020 +0000
+++ b/main.cpp	Mon Jan 13 17:44:17 2020 +0000
@@ -2,9 +2,9 @@
 #define BUTTON1 p14 
 //#define BUTTON1 A1
 
+//int lauflicht(bool richtung,int time, int &anz);
 //int modifyBit(int x, unsigned char position, bool State);
-//int lauflicht(bool richtung,int time, int &anz);
-//void nibbleLeds(int value);
+void nibbleLeds(int value);
 //void printb(uint8_t x);
 
 BusOut myleds(LED1,LED2,LED3,LED4);
@@ -12,14 +12,15 @@
 
 const int INIT = 0x03;
 
-
+//**************************************************************
 int main() {
-while(1){
-    myleds=0x05;
-    if(button)
-        myleds=0x0A;
-        wait(0.1);
-    } 
+    
+nibbleLeds(value);
+wait(0.1);
 
 }
+//**************************************************************
 
+void nibbleLeds(int value) {
+myleds= value%16;
+}
\ No newline at end of file