Created
August 22, 2014 18:18
-
-
Save antonva/535cddfd9a13cd24d2a1 to your computer and use it in GitHub Desktop.
gsm test
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 mySerial(2,3); | |
void setup() | |
{ | |
mySerial.begin(4800); | |
Serial.begin(4800); | |
} | |
void loop() | |
{ | |
if (mySerial.available()) | |
{ | |
Serial.write(mySerial.read()); | |
} | |
if (Serial.available()) | |
{ | |
mySerial.write(Serial.read()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment