Mao jesephin
/
LaufTest
test
Diff: main.cpp
- Revision:
- 8:2f1b2d1774a3
- Parent:
- 7:8f0594cbc89a
- Child:
- 9:c2c6a6a50c14
--- a/main.cpp Mon Jan 13 18:06:32 2020 +0000 +++ b/main.cpp Mon Jan 13 18:08:46 2020 +0000 @@ -33,6 +33,14 @@ { myleds=value%16; } + + void printb(uint8_t x) + { + for(int i=sizeof(x)<<3;i;i--) + putchar('0')+((x>>(i-1)&1)); + printf("\n"); + } + int modifyBit(intx,unit8_t position,bool State) { int mask = 1 << position; @@ -70,12 +78,6 @@ return anz; } } -void printb(unit8_t x) -{ - for(int i=sizeof(x)<<3;i;i--) - putchar('0')+((x>>(i-1)&1)); - printf("\n"); -} void nibbleLeds(int value) {