funktionen

Dependencies:   mbed

Revision:
3:57ccaba4a24d
Parent:
2:5b052d18a113
Child:
4:25e070866cf0
--- a/main.cpp	Mon Jan 13 17:08:24 2020 +0000
+++ b/main.cpp	Mon Jan 13 17:12:22 2020 +0000
@@ -11,3 +11,15 @@
 DigitalIn button(BUTTON1);
 
 const int INIT = 0x03;
+
+int main(){
+    int anzahl,anz;
+    uint8_t value = INIT;
+    }
+    
+int modifyBit(int x, unsigned char position, bool State)
+{
+    int mask = 1 << position;
+    int state = int(State);
+    return (x & ~mask)|((state << position) & mask);
+}
\ No newline at end of file