From a081e10a2b54c5581f5ea9a41144bca1e5d55c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Grome=C5=A1?= Date: Mon, 23 Jul 2018 12:43:25 +0200 Subject: [PATCH] JDY08 - updated example --- examples/JDY08/JDY08.ino | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/JDY08/JDY08.ino b/examples/JDY08/JDY08.ino index 80436182..d5415f4d 100644 --- a/examples/JDY08/JDY08.ino +++ b/examples/JDY08/JDY08.ino @@ -1,8 +1,8 @@ /* - * KiteLib JDY08 Example - * - * This example sends data using JDY08 Bluetooth module. - */ + KiteLib JDY08 Example + + This example sends data using JDY08 Bluetooth module. +*/ // include the library #include @@ -21,12 +21,12 @@ void setup() { void loop() { // JDY08 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()); } }