Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <SoftwareSerial.h>
  2.  
  3. // inicializace ser. portu na 2 a 3 pinu
  4. //SoftwareSerial(RX, TX);
  5. SoftwareSerial Bluetooth =  SoftwareSerial(2, 3);
  6.  
  7.  
  8. void setup() {
  9.   Bluetooth.begin(9600); // inicializace seriové linky
  10.   delay(500);// čekej 0,5 sec  
  11. }
  12.  
  13. void loop() {
  14. Bluetooth.println("ahoj"); // odešli na ser. linku ahoj
  15. delay(2000);  //čekej 2 sec
  16. }