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: SugarDozer.cpp
- Revision:
- 0:23fb6d1ad75c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SugarDozer.cpp Thu Jan 29 11:09:25 2015 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "EventCounter.h"
+#include "LEDCount.h"
+
+int main() {
+ EventCounter ec(p14, 2);
+ LEDCount lc(LED1, LED2, LED3, LED4);
+ int count;
+ while(1) {
+ count = ec.getCount();
+ lc.display(count);
+ wait(0.5);
+ }
+}
\ No newline at end of file