Hello, I have this sketch:
#include <SoftwareSerial.h> // libreria que permite establecer pines digitales
// para comunicacion serie
SoftwareSerial miBT(10,11); // pin 10 como RX, pin 11 como TX
//char letra;
//int LED = 13;
void setup(){
//(LED,OUTPUT);
Serial.begin(9600); // comunicacion de monitor serial a 9600 bps
Serial.println(“Listo”); // escribe Listo en el monitor
miBT.begin(38400); // comunicacion serie entre Arduino y el modulo a 38400 bps
}
void loop(){
if (miBT.available()) // si hay informacion disponible desde modulo
Serial.write(miBT.read()); // lee Bluetooth y envia a monitor serial de Arduino
if (Serial.available()) // si hay informacion disponible desde el monitor serial
miBT.write(Serial.read()); // lee monitor serial y envia a Bluetooth
}
But when i compile it it says theres an error with the Arduino Due, when i tried with Arduino Uno and Arduino MEGA it worked.
Theres something else i have to add to my sketch to make it work on the Arduino Due
HELP