Mark Horn / Mbed 2 deprecated New
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 #include "Terminal.h"
00004 
00005 Terminal term(USBTX, USBRX);
00006 
00007 AnalogIn voltage(p20);
00008 
00009 int main() {
00010     while(1==1){
00011         float x = voltage.read();
00012         term.printf('x');
00013     }
00014 }