Claus Kühnel / Mbed 2 deprecated sieve

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ckuehnel
Date:
Tue Feb 16 18:31:53 2016 +0000
Parent:
0:d11e3ed28115
Commit message:
LED included

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d11e3ed28115 -r 0c5680e1cfbc main.cpp
--- a/main.cpp	Tue Feb 16 18:09:55 2016 +0000
+++ b/main.cpp	Tue Feb 16 18:31:53 2016 +0000
@@ -31,6 +31,7 @@
 
 int main() 
 {
+  myled = 0;
   pc.baud(115200);
   pc.printf("Sieve of Eratosthenes - Arch Pro\n");
   
@@ -56,6 +57,7 @@
       }
     }
   }
+  myled = 1;
   time = timer.read_ms() - time;
   pc.printf("%d primes.\n", count);        
   pc.printf("Runtime = %d ms\n",time);