Test

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 Serial device(PD_5,A0,9600);
00004 
00005 int main() {
00006    device.format(8,SerialBase::None,1);
00007    while(1){
00008            printf("0X%x\n\r",device.getc());
00009     } // end while 1
00010 } // end main