-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi, I created a sample bluetooth controlled led using piduino library. Below is the code is executed. How can I include rfcomm in the below code ? I am able to run the code, but not able to control the LED using android via bluetooth.
#include <Piduino.h>
int led = 21;
int data = 0;
void setup()
{
pinMode(led, OUTPUT);
Serial.begin(9600);
}
void loop()
{
data = Serial.read();
if(data == '1')
{
digitalWrite(led, HIGH);
}
if(data == '0')
{
digitalWrite(led, LOW);
}
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request