Cod
Cod
h>
void setup() {
Serial.begin(9600); // Set up serial communication
bluetooth.begin(9600); // Set up Bluetooth communication
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);// Set LED pin as output
}
void loop() {
if (bluetooth.available()) { // Check if data is available to read from Bluetooth
command = bluetooth.read(); // Read the incoming command from Bluetooth