
Test
Revision 2:c86901b0b8ae, committed 2016-05-27
- Comitter:
- twitte
- Date:
- Fri May 27 14:22:45 2016 +0000
- Parent:
- 1:c67074d8e47c
- Commit message:
- Recieved message from other pc
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RTC.lib Fri May 27 14:22:45 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/RTC/#be9d058ee5c7
--- a/main.cpp Thu May 26 09:24:01 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#include "mbed.h" - -DigitalOut myled(LED1); - -int main() { - - - SendFrequency = '0 0000 0001'; // Means every 10 minutes - MeasureFrequency = '0 0000 0100'; // means every 20 minutes - - - - - - -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recievelink.cpp Fri May 27 14:22:45 2016 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" + +Serial micro(p9, p10); +Serial pc(USBTX,USBRX); +int command; +int check; + + +int main() +{ + micro.format(8, Serial::None, 1); + micro.baud(19200); + pc.format(8, Serial::None, 1); + pc.baud(9600); + + + command = micro.getc(); + + pc.printf("This is the character entered by the other pc: %X\n",command); + + pc.printf("enter code"); + + check = pc.getc(); + pc.printf("code entered = %X\n",check); + micro.putc(check); + + +} + +