Created
August 4, 2015 13:04
-
-
Save michaelsarduino/59cbac859861d4da4151 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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