yasuo hayashibara
/
robocon_ad_check
This is a check program for the Robocon Magazine.
Revision 0:0dbea050804e, committed 2013-01-16
- Comitter:
- yasuohayashibara
- Date:
- Wed Jan 16 16:00:07 2013 +0000
- Commit message:
- This is a check program for Robocon Magazine.
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jan 16 16:00:07 2013 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +AnalogIn adc_in1(p15); +AnalogIn adc_in2(p16); +Serial pc(USBTX, USBRX); + +int main() { + while(1) { + pc.printf("%f, %f\r\n",adc_in1.read(),adc_in2.read()); + wait(2); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jan 16 16:00:07 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ed12d17f06 \ No newline at end of file