Bonjour, j'ai un problème avec mon modue 433Mhz, il fonctionne bien car j'ai brancher le pin data sur un buzzer (le buzzer sonne quand j'appuis sur ma télécommande),
Mais je veut récupéré les données reçu par la télécommande
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
Serial.println("GO !");
delay(100);
// enable the RC-Switch receiver pin 3
mySwitch.enableReceive(3);
}
void loop() {
// if data is available
if(mySwitch.available()) {
// display the received data on the debug serial line
Serial.print("Received value: ");
Serial.println(mySwitch.getReceivedValue());
Serial.print("Bit Length: ");
Serial.println(mySwitch.getReceivedBitlength());
}
else {
Serial.print("nope");
}
}
Le code ne marche pas, je reçois que des nope dans la console arduino,
Pouvez vous m'aider, merci
Apex