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.
Revision 0:681faf7ef4a4, committed 2013-10-31
- Comitter:
- Tess
- Date:
- Thu Oct 31 10:06:15 2013 +0000
- Commit message:
- Version 1: not doing what we want
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MODSERIAL.lib Thu Oct 31 10:06:15 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/MODSERIAL/#f42def64c4ee
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Oct 31 10:06:15 2013 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "MODSERIAL.h"
+
+DigitalIn toggle(PTC7);
+DigitalOut Redled(LED2);
+//DigitalIn stoggle_geel(PTC0);
+
+
+
+/*MODSERIAL pc(USBTX,USBRX);
+pc.baud(921600);
+pc.printf("%f", switchinput_geel);*/
+
+void toggle_on() {
+ for(int i=0; i<10; i++) {
+ Redled = !Redled;
+ wait(0.2);
+ }
+}
+
+void toggle_off() {
+ // do nothing
+}
+
+int main() {
+ while(1) {
+ while(!toggle); // wait while toggle == 0
+ toggle_on();
+ while(toggle); // wait while toggle == 1
+ toggle_off();
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Oct 31 10:06:15 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file
