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.
Diff: main.cpp
- Revision:
- 3:20222fa63b3e
- Parent:
- 2:cbc675b0abd5
--- a/main.cpp Fri Dec 08 19:27:13 2017 +0000
+++ b/main.cpp Fri Oct 25 02:46:52 2019 +0000
@@ -51,11 +51,10 @@
int main()
{
- char c = 'A';
pc.baud(9600);
pc.format(8,SerialBase::None,1);
- blue.baud(38400); // Default Bluetooth Baudrate
+ blue.baud(9600); // Default Bluetooth Baudrate
blue.format(8,SerialBase::None,1);
pc.printf("Bluetooth HC-05\r\n");
@@ -88,8 +87,8 @@
blue.puts("AT+NAME?\r\n");
wait_ms(1000);
- pc.puts("\r\nAT+UART=38400,0,0"); //No parity, 1 Stop bit
- blue.puts("AT+UART=38400,0,0\r\n"); //No parity, 1 Stop bit
+ pc.puts("\r\nAT+UART=9600,0,0"); //No parity, 1 Stop bit
+ blue.puts("AT+UART=9600,0,0\r\n"); //No parity, 1 Stop bit
wait_ms(1000);
pc.puts("\r\nAT+UART?= ");
@@ -105,16 +104,6 @@
wait_ms(1000);
- // Send the alphabet
while (1) {
- for (int loop = 0; loop < 512; loop++) {
-
- blue.printf("%c", c);
- c++;
- if (c > 'Z') c = 'A';
- if (loop > 510) loop = 0;
-
- wait_ms(100);
- }
}
}
\ No newline at end of file