Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 /* Program Example 12.1: Bluetooth serial test data program 00002 */ 00003 #include "mbed.h" 00004 Serial rn41(p9,p10); 00005 BusOut led(LED4,LED3,LED2,LED1); 00006 00007 int main() { 00008 rn41.baud(115200); // set baud for RN41 00009 while (1) { 00010 for (char x=0x30;x<=0x39;x++){ // ASCII numerical characters 0-9 00011 rn41.putc(x); // send test char data on serial 00012 led = x & 0x0F; // set LEDs to count in binary 00013 wait(0.5); 00014 } 00015 } 00016 } 00017
Generated on Wed Jul 27 2022 15:26:26 by
1.7.2