Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created August 4, 2015 13:04
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 michaelsarduino/59cbac859861d4da4151 to your computer and use it in GitHub Desktop.
Save michaelsarduino/59cbac859861d4da4151 to your computer and use it in GitHub Desktop.
#include <SoftwareSerial.h>
SoftwareSerial serialbluetooth(2, 3);
void setup() {
serialbluetooth.begin(9600);
Serial.begin(9600);
}
void loop() {
if(serialbluetooth.available() > 0)
{
String status_led = serialbluetooth.readString();
Serial.println((String)status_led);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment