Junichi Nagayama
/
SIST-1
SIST mbed training lesson #1
Revision 0:fe3149be3819, committed 2011-01-14
- Comitter:
- junTMUG
- Date:
- Fri Jan 14 14:23:07 2011 +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 fe3149be3819 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jan 14 14:23:07 2011 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +PwmOut myled(p21); + +int main() { + float kido = 0.0; + while (1) { + myled = kido; + kido += 0.1; + if (kido > 1.0) kido = 0.0; + wait(0.5); + } +} \ No newline at end of file
diff -r 000000000000 -r fe3149be3819 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jan 14 14:23:07 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e