cagdas d
/
lauftest
initial commit and publish
Diff: main.cpp
- Revision:
- 4:a1b882076f41
- Parent:
- 3:c1dee77b3e02
- Child:
- 5:c7b761205cd6
--- a/main.cpp Mon Jan 13 17:36:48 2020 +0000 +++ b/main.cpp Mon Jan 13 17:38:52 2020 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" // #define BUTTON1 A1 #define BUTTON1 p14 -BusOut myLeds(LED1,LED2,LED3,LED4); +BusOut myleds(LED1,LED2,LED3,LED4); DigitalIn button(BUTTON1); void nibbleLeds(int value); @@ -26,11 +26,11 @@ } void nibbleLeds(int value) { - myLeds = value % 16; + myleds = value % 16; } void printb(uint8_t x){ - for(int i = sizeof() << 3; i; i--) + for(int i = sizeof(x) << 3; i; i--) putchar('0' + ((x >> (i - 1)) & 1)); printf("\n"); }