Duino Joy je jednoduchý virtuální joystick pro komunikaci s Arduino přes bluetooth modul
Pohled příklad o tom, jak používat při https://www.instructables.com/id/Simple-RC-Car-Arduino-Nano-HC-05/
***********************
testování
***********************
// Connection
// Arduino >>> bluetooth
// D10 (jako RX) >>> Tx
// D11 (jako TX) >>> Rx
#include
SoftwareSerial bluetooth (10, 11); // RX, TX
void setup () {
Serial.begin (19200); // Display na Arduino IDE Serial Monitor
bluetooth.begin (9600); // Komunikace s modulem Bluetooth
}
void loop () {
while (bluetooth.available ()) // Počkat na data z bluetooth
{
char a = bluetooth.read (); // Read Data Char z Software Serial
Serial.print ( "obdržel");
Serial.println (a); // tisková data pro Serial Monitor
}
}
Datum aktualizace
4. 1. 2020