A demonstartion to show how easy (as the name would suggest) the BlueFruit EZ-Link is to get a bluetooth connection in your project.
Revision 0:c1798dc6ef6f, committed 2015-06-24
- Comitter:
- melmon
- Date:
- Wed Jun 24 12:08:49 2015 +0000
- Commit message:
- Initial Release
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 c1798dc6ef6f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jun 24 12:08:49 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +Serial bluetooth(p13,p14); //setup the serial pins for the bluetooth connection + +int main() { + while(1) { + myled = 1; + wait(2); + myled = 0; + bluetooth.printf("EZ-Test \r\n", ); // transmit the data you want to, don't worry about the baud rate etc. the EZ-Link auto sets this + wait(2); + } +}
diff -r 000000000000 -r c1798dc6ef6f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jun 24 12:08:49 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file