Revision:
0:63a7162ec2f5
diff -r 000000000000 -r 63a7162ec2f5 test.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test.cpp	Wed Aug 24 09:45:41 2011 +0000
@@ -0,0 +1,129 @@
+#include "test.h"
+
+DigitalOut myled(LED1);
+DigitalOut myled2(LED2);
+DigitalOut myled3(LED3);
+DigitalOut myled4(LED4);
+
+void tclass1 :: prog1() 
+{
+  //  while(1) {
+        myled = 0;
+        myled3 = 1 ;
+        myled2 = 0;
+        myled4 = 1;
+        wait(0.2);
+        myled2 = 1;
+        myled4 = 0;
+        myled  = 1;
+        myled3 = 0;
+        wait(0.2);
+        
+    //}
+}
+
+void tclass1 :: prog2()
+{
+//while(1) {
+        myled = 0;
+        myled2 = 1 ;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.02);
+        
+        myled = 1;
+        myled2 = 1;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.02);
+        
+        myled = 1;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.02);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 0;
+        wait(1);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 1;
+        wait(0.02);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 1;
+        myled4 = 1;
+        wait(0.02);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 1;
+        myled4 = 0;
+        wait(0.02);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.02);
+  //  }
+}
+
+void tclass1 :: prog3()
+{
+//while(1) {
+        myled = 1;
+        myled2 = 0 ;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.15);
+        
+        myled = 0;
+        myled2 = 1;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.15);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 1;
+        myled4 = 0;
+        wait(0.15);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 1;
+        wait(0.15);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 1;
+        wait(0.15);
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 1;
+        myled4 = 0;
+        wait(0.15);
+        
+        myled = 0;
+        myled2 = 1;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.15);
+        
+        myled = 1;
+        myled2 = 0;
+        myled3 = 0;
+        myled4 = 0;
+        wait(0.15);
+  //  }
+}
\ No newline at end of file