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: trigger.hpp
- Revision:
- 16:f2d46570f0e6
- Parent:
- 15:89ff99d55466
- Child:
- 17:6b7a31fb7702
--- a/trigger.hpp Thu Jul 25 11:09:37 2019 +0000
+++ b/trigger.hpp Thu Jul 25 11:14:24 2019 +0000
@@ -10,7 +10,7 @@
}
void loopFall(){
- loop = (~loop);
+ loop = (!loop);
pc.printf("button press \n\r");
}
@@ -84,7 +84,7 @@
sumprobabilityduration();
randomgenerateduration();
determineduration();
- //outputdecision();
+ outputdecision();
}
if(clockcount == storedduration-1){
//allledoff();
@@ -103,7 +103,7 @@
sumprobabilityduration();
randomgenerateduration();
determineduration();
- //outputdecision();
+ outputdecision();
}
// pc.printf("NOTE: %i OCTIVE: %i DURATION: %i \n\r",note,octive,duration);
@@ -116,16 +116,20 @@
wait(0.0001);
clockcount = 0;
}
- }
+ }
+ allledoff();
+ outputdecision();
+
if(clockcount == 1 && storedduration == 1){
- allledoff();
- outputdecision();
+
updateled();
+
}
+
if(clockcount == storedduration-1){
- allledoff();
- outputdecision();
+
updateled();
+
}
}
#endif
\ No newline at end of file