Takumi Okamoto
/
Analog_out_test
うでのかい
Revision 0:cb925fea7c0c, committed 2011-07-13
- Comitter:
- MrBearing
- Date:
- Wed Jul 13 06:25:37 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 cb925fea7c0c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jul 13 06:25:37 2011 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +AnalogOut signal(p18); + +int main() { + while(1) { + for(float i=0.0; i<1.0; i+=0.1) { + signal = i; + wait(0.0001); + } + } +} \ No newline at end of file
diff -r 000000000000 -r cb925fea7c0c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jul 13 06:25:37 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912