Created
November 22, 2016 19:51
-
-
Save jywarren/09d1f93caf7f5e5e4a7dad2cf724bcad 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 <SoftModem.h> | |
SoftModem modem = SoftModem(); | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Booting"); | |
delay(100); | |
modem.begin(); | |
} | |
void loop() { | |
while(modem.available()){ | |
Serial.print("Received"); | |
int c = modem.read(); | |
Serial.print((char)c); | |
} | |
if(Serial.available()){ | |
modem.write(0xff); | |
while(Serial.available()){ | |
char c = Serial.read(); | |
modem.write(c); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment