send
Dependencies: mbed
Revision 0:867991ea3c77, committed 2017-01-26
- Comitter:
- wallsow
- Date:
- Thu Jan 26 01:15:52 2017 +0000
- Commit message:
- envoi;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 867991ea3c77 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jan 26 01:15:52 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "stdio.h" + +int main() +{ + int cpt=1; + char tmp[30]="AT$SS=00 12 FF 42 \r\n";//AT$SS=00 12 FF 42 \r\n + + Serial s(PA_0,PA_1); + s.baud(9600); + s.format(8,SerialBase::None,1); + + + while(1) + { + s.printf(tmp); + cpt++; + wait (60); + } +} \ No newline at end of file
diff -r 000000000000 -r 867991ea3c77 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jan 26 01:15:52 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9baf128c2fab \ No newline at end of file