#include<VirtualWireInterrupts.h> no such file or directory

Hello sir, can you please help me i had an error in the coding which says : #include<VirtualWireInterrupts.h> no such file or directory

Here is my code:

#include <VirtualWire.h>

void setup()
{
Serial.begin(9600); // Debugging only
Serial.println("setup");

// Initialise the IO and ISR
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(2000);	 // Bits per sec

vw_rx_start();       // Start the receiver PLL running

}

void loop()
{
uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;

if (vw_get_message(buf, &buflen)) // Non-blocking
{
int i;

    digitalWrite(13, true); // Flash a light to show received good message
// Message with a good checksum received, dump it.
Serial.print("Got: ");

for (i = 0; i < buflen; i++)
{
    Serial.print(buf[i], HEX);
    Serial.print(" ");
}
Serial.println("");
    digitalWrite(13, false);
}

}

It appears you are using this library:

This was only a proof of concept made by one of the Arduino developers for a proposed Arduino library structure which was not used in the end. So you won't be able to use it.

I think your best bet will be to uninstall that version of VirtualWire and then replace it with the original VirtualWire, which you can download here:
http://airspayce.com/mikem/arduino/VirtualWire/

Or perhaps you will be better off to heed the notice there:

END OF LIFE NOTICE

This VirtualWire library has now been superceded by the RadioHead library RadioHead: RadioHead Packet Radio library for embedded microprocessors RadioHead and its RH_ASK driver provides all the features supported by VirtualWire, and much more besides, including Reliable Datagrams, Addressing, Routing and Meshes. All the platforms that VirtualWire supported are also supported by RadioHead.

This library will no longer be maintained or updated, but we will continue to publish it for the benefit of the the community. Nevertheless we recommend upgrading to RadioHead where possible.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.