Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h>
- SoftwareSerial BTSerial(2,3); //(Tx,Rx)
- void setup() {
- Serial.begin(9600);
- BTSerial.begin(9600);
- }
- void loop() {
- if(BTSerial.available())
- Serial.write(BTSerial.read());
- if(Serial.available())
- BTSerial.write(Serial.read());
- }
Add Comment
Please, Sign In to add comment