Skip to content

Instantly share code, notes, and snippets.

@erdemarslan
Created May 14, 2020 13:44
Show Gist options
  • Save erdemarslan/691c47f32f2afdeed1f892288ccee9ab to your computer and use it in GitHub Desktop.
Save erdemarslan/691c47f32f2afdeed1f892288ccee9ab to your computer and use it in GitHub Desktop.
#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