Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h>
- // inicializace ser. portu na 2 a 3 pinu
- //SoftwareSerial(RX, TX);
- SoftwareSerial Bluetooth = SoftwareSerial(2, 3);
- void setup() {
- Bluetooth.begin(9600); // inicializace seriové linky
- delay(500);// čekej 0,5 sec
- }
- void loop() {
- Bluetooth.println("ahoj"); // odešli na ser. linku ahoj
- delay(2000); //čekej 2 sec
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement