Skip to content

Instantly share code, notes, and snippets.

@gelicia
Created October 17, 2015 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gelicia/7acadb49c1866a77f59a to your computer and use it in GitHub Desktop.
Save gelicia/7acadb49c1866a77f59a to your computer and use it in GitHub Desktop.
Particle serial out
#include "application.h"
void setup() {
Spark.function("writeSerial", writeSerial);
}
void loop() {
Serial1.begin(115200);
}
int writeSerial(String arg) {
arg += "\n\r";
Serial1.write(arg);
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment