by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
Revision 0:90a5426d4de5, committed 2013-06-16
- Comitter:
- robt
- Date:
- Sun Jun 16 15:31:34 2013 +0000
- Commit message:
- by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
;
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 90a5426d4de5 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jun 16 15:31:34 2013 +0000 @@ -0,0 +1,14 @@ +/* Program Example 12.7: Ethernet write + */ +#include "mbed.h" +#include "Ethernet.h" +Ethernet eth; // The Ethernet object +char data[]={0xB9,0x46}; // Define the data values +int main() { + while (1) { + eth.write(data,0x02); // Write the package + eth.send(); // Send the package + wait(0.2); // wait 200 ms + } +} +
diff -r 000000000000 -r 90a5426d4de5 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jun 16 15:31:34 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17 \ No newline at end of file