test

Dependencies:   mbed

Revision:
4:af513265bf6c
Parent:
3:91bbd8d2f0c0
Child:
5:e8861f51128f
--- a/main.cpp	Mon Jan 13 17:47:03 2020 +0000
+++ b/main.cpp	Mon Jan 13 17:55:20 2020 +0000
@@ -8,10 +8,10 @@
 void nibbbledLeds(int value);
 void printb(uint8_t x);
  
- BusOut myleds(LED1,LED2,LED3,LED4);
- DigitalIn button(Button);
+BusOut myleds(LED1,LED2,LED3,LED4);
+DigitalIn button(BUTTON1);
  
- const int INIT=ox03;
+const int INIT=ox03;
 
 int main() {
     int anzahl,anz;
@@ -72,3 +72,8 @@
     printf("\n");
 }
 
+void nibbleLeds(int value)
+{
+    myled=value%16;
+    }
+