RF Link TX/RX with the RadioHead library

Hello!
I try to change my default pin of my receiver to 11 from pin 3,18,19,20 or 21 to interrupt it with RadioHead, its easy on VirtulaWire with this line: vw_set_rx_pin(3);

But I tried on RadioHead with this : RH_ASK driver(2000,3,12,10,false); and it didn’t work :confused:

This is my complete code:

#include <RH_ASK.h>    
RH_ASK driver;


void setup()
{   
    initialisation_interruption ();

    pinMode(2, INPUT);
    digitalWrite(2, HIGH);
    pinMode(13, OUTPUT);
    digitalWrite(13, LOW);

    RH_ASK driver(2000,3,12,10,false);

    #ifdef RH_HAVE_SERIAL
     Serial.begin(9600);	  
    #endif
     if (!driver.init())
      #ifdef RH_HAVE_SERIAL
        Serial.println("init failed");
    #endif
}

void loop()
{ 
 delay (5000);
}

void initialisation_interruption ()
{
  attachInterrupt(digitalPinToInterrupt(2), led, CHANGE);
    attachInterrupt(digitalPinToInterrupt(3), remote, CHANGE);
}

void led ()
{
        if (digitalRead(2))   
   {
    digitalWrite(13, LOW);
   }  
     else if (!digitalRead(2)) 
      { 
       digitalWrite(13, HIGH);
      } 
}

void remote ()
{
  uint8_t buf[4]; 
  uint8_t buflen = sizeof(buf); 
    if (driver.recv(buf, &buflen))
     { 
        int i;
         Serial.print("Bouton: "); 
         Serial.println((char*)buf); 
     }
}

So please if you could help me it will be very kind :smiley:

If someone have the same problem I finally correct it, this is my code:

#include <RH_ASK.h>
#include <SPI.h>
 
#define buffsize 10
uint8_t buf[buffsize];
uint8_t buflen = buffsize;
 
RH_ASK driver(2000, 3, 12, 0);
 
 
void setup() 
{
  Serial.begin(9600);
  driver.init();

    initialisation_interruption ();
    pinMode(2, INPUT);
    digitalWrite(2, HIGH);
    pinMode(13, OUTPUT);
    digitalWrite(13, LOW);
}
void loop() 
{
 delay (5000);
}


void initialisation_interruption ()
{
    attachInterrupt(digitalPinToInterrupt(2), led, CHANGE);
    attachInterrupt(digitalPinToInterrupt(3), remote, CHANGE);
}

void remote ()
{
    uint8_t buf[4]; 
  uint8_t buflen = sizeof(buf); 
    if (driver.recv(buf, &buflen))
     { 
        int i;
         Serial.print("Bouton: "); 
         Serial.println((char*)buf); 
     }
}

void led ()
{
        if (digitalRead(2))   
   {
    digitalWrite(13, LOW);
   }  
     else if (!digitalRead(2)) 
      { 
       digitalWrite(13, HIGH);
      } 
}