You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}