Browse Source

Pinzuordnungen ergaenzt

lukas
Yves Ehrlich 2 years ago
parent
commit
a3a0eeca19
  1. 4
      Arduino/receiver_code/receiver_code.ino
  2. 2
      Arduino/transmitter_code/transmitter_code.ino

4
Arduino/receiver_code/receiver_code.ino

@ -2,7 +2,7 @@
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(3, 2); // CE, CSN
RF24 radio(A0, 3); // CE, CSN
const byte address[6] = "00001";
@ -21,7 +21,7 @@ void loop() {
radio.read(&text, sizeof(text));
Serial.print("recieved: ");
Serial.print("received: ");
Serial.println(text);
}
}

2
Arduino/transmitter_code/transmitter_code.ino

@ -2,7 +2,7 @@
#include <nRF24L01.h>
#include <RF24.h>
RF24 radio(3, 2); // CE, CSN
RF24 radio(A2, A3); // CE, CSN
const byte address[6] = "00001";

Loading…
Cancel
Save