Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:063b68bbc135
- Parent:
- 1:d400ca81c517
- Child:
- 3:916c3a72cbd0
--- a/main.cpp Thu Nov 03 09:17:56 2022 +0000
+++ b/main.cpp Mon Nov 07 09:05:06 2022 +0000
@@ -124,14 +124,16 @@
//...
}
if(bS2Timer == nTastLong){ /* Taste "lange gedrückt" erkannt */
- bDigit--;
+ if(bDigit <= 0x08 || bDigit > 0x01) bDigit>>1;
+ else bDigit = 0b00001000;
}
bS2Timer++;
}
}
else{ /* Taste nicht gedrückt */
if((bS2Timer >= nTastShort) && (bS2Timer <= nTastLong)){ /* Taste wurde bereits erkannt */
- bDigit++;
+ if(bDigit < 0x08 || bDigit >= 0x01) bDigit<<1;
+ else bDigit = 0b00000001;
}
bS2Timer = 0;
}