Guest User

Untitled

a guest
Sep 30th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <SoftwareSerial.h>
  2. SoftwareSerial BTSerial(2,3); //(Tx,Rx)
  3. void setup() {
  4. Serial.begin(9600);
  5. BTSerial.begin(9600);
  6.  
  7. }
  8.  
  9. void loop() {
  10. if(BTSerial.available())
  11. Serial.write(BTSerial.read());
  12. if(Serial.available())
  13. BTSerial.write(Serial.read());
  14. }
Add Comment
Please, Sign In to add comment