Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h> //software serial port :D
- #define RxD 6 //bluetóthos rx tx lábak :D
- #define TxD 7
- SoftwareSerial blueToothSerial (RxD, TxD);
- void setup()
- {
- Serial.begin(9600); //soros port indítása =DD
- blueToothSerial.begin(9600);
- pinMode(RxD, INPUT);
- pinMode(TxD, OUTPUT);
- }
- void loop()
- {
- char recvChar;
- if(blueToothSerial.available())
- {
- recvChar = blueToothSerial.read();
- Serial.print(recvChar);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement