I want use a bluetooth HC-06 with arduino DUE.
The programe is working with Arduino Uno but not with Due.
The error in compilacion is:
fatal error: SoftwareSerial.h: No such file or directory
I think that the problem is with the library. What can I do? Can I communicate with serial without this library?
Thanks
Here the programe:
#include <SoftwareSerial.h> //Librería que permite establecer comunicación serie en otros pins
//Aquí conectamos los pins RXD,TDX del módulo Bluetooth.
SoftwareSerial BT(15,14); //10 RX, 11 TX(Uno) 15 RX, 14 TX(Due)
void setup()
{
BT.begin(9600); //Velocidad del puerto del módulo Bluetooth
Serial.begin(9600); //Abrimos la comunicación serie con el PC y establecemos velocidad
}
void loop()
{
if(BT.available())
{
Serial.write(BT.read());
}
if(Serial.available())
{
BT.write(Serial.read());
}
}