Skip to content

Instantly share code, notes, and snippets.

@yeffrimic
Created June 30, 2016 07:37
Show Gist options
  • Save yeffrimic/fe854fb321c02464b3955658456f557b to your computer and use it in GitHub Desktop.
Save yeffrimic/fe854fb321c02464b3955658456f557b to your computer and use it in GitHub Desktop.
#include softwareSerial
String datosEntrantes;
softwareSerial pic(2,3) //rx,tx pines
void setup(){
Serial.begin(115200);
pic.begin(115200);
}
void loop(){
while(pic.available()>0){
char CaracterEntrante = pic.read();
datosEntrantes += CaracterEntrante;
}
Serial.println(datosEntrantes);
datosEntrantes = "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment