Duino Joy je jednoduchý virtuálny joystick pre komunikáciu s Arduino cez bluetooth modul
Pohľad príklad o tom, ako používať pri https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
testovanie
***********************
// Connection
// Arduino >>> bluetooth
// D10 (ako RX) >>> Tx
// D11 (ako TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display na Arduino IDE Serial Monitor
bluetooth.begin (9600); // Komunikácia s modulom Bluetooth
}
void loop () {
while (bluetooth.available ()) // Počkať na dáta z bluetooth
{
char a = bluetooth.read (); // Read Dáta Char z Software Serial
Serial.print ( "obdržal");
Serial.println (a); // tlačové dáta pre Serial Monitor
}
}