This is a check program for the Robocon Magazine.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 AnalogIn adc_in1(p15);
00004 AnalogIn adc_in2(p16);
00005 Serial pc(USBTX, USBRX);
00006 
00007 int main() {
00008     while(1) {
00009         pc.printf("%f, %f\r\n",adc_in1.read(),adc_in2.read());
00010         wait(2);
00011     }
00012 }