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:7efb0bdf86b0, committed 2011-08-29
- Comitter:
- ryo01_kangeki
- Date:
- Mon Aug 29 20:38:25 2011 +0000
- Commit message:
- Ver. 1.0
Changed in this revision
diff -r 000000000000 -r 7efb0bdf86b0 TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Mon Aug 29 20:38:25 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r 000000000000 -r 7efb0bdf86b0 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Aug 29 20:38:25 2011 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "TextLCD.h"
+DigitalOut myled(LED1);
+TextLCD lcd(p24, p26, p27, p28, p29, p30, TextLCD::LCD16x2); // rs, e, d4-d7
+DigitalOut leds[] = {(LED1), (LED2),(LED3),(LED4)};
+
+int main() {
+ long i, j, k, ii = 0;
+
+ for( i=3; i <= 10002000; i += 2 ){
+ k = 1;
+ for(j = 3; j < i / 2; j +=2 ){
+ if(i % j == 0) {k= 0; break;}
+ }
+ if( k == 1 ){
+ lcd.printf("%8d", i);
+ leds[0] = ii % 2;
+ leds[1] = ii % 4 >> 1;
+ leds[2] = ii % 8 >> 2;
+ leds[3] = ii % 16 >> 3;
+ ii++;
+ if(i > 10000000) break;
+ }
+ }
+
+}
diff -r 000000000000 -r 7efb0bdf86b0 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Aug 29 20:38:25 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912