LAB10 tamplate for Oppgave2
Dependencies: mbed
Fork of LAB10_Oppgave1 by
Import program
00001 #include "mbed.h" 00002 00003 Serial pc(USBTX, USBRX); 00004 00005 // The pc has sendt a char to us 00006 void pcTxSrialData() 00007 { char rxData=pc.getc(); 00008 pc.putc(rxData); 00009 } 00010 00011 int main() 00012 { 00013 //Listen for serial data from the PC 00014 pc.attach(&pcTxSrialData); 00015 00016 while (1) { 00017 wait(1); 00018 } 00019 } 00020 00021 00022
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
2:dc9d556924d9 | 2015-11-04 | fix | File Diff Annotate |
1:c3e8496642b4 | 2015-11-04 | Changed to IRQ | File Diff Annotate |
0:1fe30bae9dc1 | 2015-11-04 | first comit | File Diff Annotate |