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.
Diff: main.cpp
- Revision:
- 2:14b38579386c
- Parent:
- 1:0072ef0302ec
- Child:
- 3:2457871851db
--- a/main.cpp Wed Nov 26 09:53:44 2014 +0000
+++ b/main.cpp Wed Nov 26 10:28:31 2014 +0000
@@ -9,7 +9,7 @@
bool longPress = false;
int counterTime = 0;
-int counterBlink=8;
+int counterBlink=6;
Ticker timeTasterTest;
Ticker timeLedTest;
@@ -31,12 +31,12 @@
void ledTest()
{
if(shortPress) {
- if(counterBlink>0) {
+ if(counterBlink>=0) {
led[3]=!led[3];
counterBlink--;
} else {
led[3]=0;
- counterBlink=8;
+ counterBlink=6;
shortPress=false;
}
}
@@ -44,9 +44,7 @@
led[3]=!led[3];
}
- if(!longPress&&!shortPress) {
- led[3]=0;
- }
+
}