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:4e035e5744a9, committed 2010-03-11
- Comitter:
- teekiansek
- Date:
- Thu Mar 11 11:29:13 2010 +0000
- Commit message:
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 4e035e5744a9 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Mar 11 11:29:13 2010 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h"
+TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, rw, e, d0, d1, d2, d3
+AnalogOut signal(p18);
+
+float ff;
+float pi;
+float theta;
+
+
+int main() {
+ pi = 3.142;
+
+ while (1) {
+ theta=0;
+ for( int i=0; i < 63; i++ ) {
+ theta+=0.1;
+ ff = 0.5*sin(theta)+0.5;
+ signal=ff;
+ lcd.locate (0,0);
+ lcd.printf("%.2f", ff);
+ wait(0.001);
+ }
+ }
+}
\ No newline at end of file
diff -r 000000000000 -r 4e035e5744a9 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 11 11:29:13 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0