Created
May 14, 2020 13:44
-
-
Save erdemarslan/691c47f32f2afdeed1f892288ccee9ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
SoftwareSerial sim(7,8); | |
void setup() { | |
// put your setup code here, to run once: | |
sim.begin(57600); // RX 7 - TX 8 | |
Serial.begin(115200); | |
Serial.println("Basladik!"); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
if(Serial.available()) { | |
sim.write(Serial.read()); | |
} | |
if(sim.available()) { | |
//Serial.println("#####"); | |
Serial.write(sim.read()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment