Duino Joy egyszerű virtuális joystick kommunikálni Arduino bluetooth modul
Részletek példa, hogyan kell használni a https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
Tesztelés
***********************
// Connection
// Arduino >>> bluetooth
// D10 (például RX) >>> Tx
// D11 (például TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display hogy Arduino IDE Serial Monitor
bluetooth.begin (9600); // Kommunikálni Bluetooth modul
}
void hurok () {
while (bluetooth.available ()) // Várja adatok bluetooth
{
char a = bluetooth.read (); // Adatok olvasása a Char a Szoftver Serial
Serial.print ( "kapta:");
Serial.println (a); // Nyomtatási adatok soros Monitor
}
}