A demonstartion to show how easy (as the name would suggest) the BlueFruit EZ-Link is to get a bluetooth connection in your project.
Diff: main.cpp
- Revision:
- 0:c1798dc6ef6f
--- /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); + } +}