From b772fc915d1c8fe3eb571ae721e8fd69553a3ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Grome=C5=A1?= Date: Mon, 23 Jul 2018 12:43:12 +0200 Subject: [PATCH] HC05 - updated example --- examples/HC05/HC05.ino | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/HC05/HC05.ino b/examples/HC05/HC05.ino index d8e79fc5..6ef31c98 100644 --- a/examples/HC05/HC05.ino +++ b/examples/HC05/HC05.ino @@ -1,10 +1,10 @@ /* - * KiteLib HC05 Example - * - * This example sends data using HC05 Bluetooth module. - * HC05 works exactly like a Serial line, data are sent to the paired device. - * The default pairing code for HC05 is 1234. - */ + KiteLib HC05 Example + + This example sends data using HC05 Bluetooth module. + HC05 works exactly like a Serial line, data are sent to the paired device. + The default pairing code for HC05 is 1234. +*/ // include the library #include @@ -23,12 +23,12 @@ void setup() { void loop() { // HC05 supports all methods of the Serial class // read data incoming from Serial port and write them to Bluetooth - while(Serial.available() > 0) { + while (Serial.available() > 0) { bluetooth.write(Serial.read()); } - + // read data incoming from Bluetooth and write them to Serial port - while(bluetooth.available() > 0) { + while (bluetooth.available() > 0) { Serial.write(bluetooth.read()); } }