A demonstartion to show how easy (as the name would suggest) the BlueFruit EZ-Link is to get a bluetooth connection in your project.

Dependencies:   mbed

Committer:
melmon
Date:
Wed Jun 24 12:08:49 2015 +0000
Revision:
0:c1798dc6ef6f
Initial Release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
melmon 0:c1798dc6ef6f 1 #include "mbed.h"
melmon 0:c1798dc6ef6f 2
melmon 0:c1798dc6ef6f 3 DigitalOut myled(LED1);
melmon 0:c1798dc6ef6f 4
melmon 0:c1798dc6ef6f 5 Serial bluetooth(p13,p14); //setup the serial pins for the bluetooth connection
melmon 0:c1798dc6ef6f 6
melmon 0:c1798dc6ef6f 7 int main() {
melmon 0:c1798dc6ef6f 8 while(1) {
melmon 0:c1798dc6ef6f 9 myled = 1;
melmon 0:c1798dc6ef6f 10 wait(2);
melmon 0:c1798dc6ef6f 11 myled = 0;
melmon 0:c1798dc6ef6f 12 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
melmon 0:c1798dc6ef6f 13 wait(2);
melmon 0:c1798dc6ef6f 14 }
melmon 0:c1798dc6ef6f 15 }