diff --git a/Arduino/receiver_code/receiver_code.ino b/Arduino/receiver_code/receiver_code.ino deleted file mode 100644 index 93197a2..0000000 --- a/Arduino/receiver_code/receiver_code.ino +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include -#include - -RF24 radio(A0, 3); // CE, CSN - -const byte address[6] = "00001"; - -void setup() { - Serial.begin(9600); - - radio.begin(); - radio.openReadingPipe(0, address); - radio.setPALevel(RF24_PA_MAX); - radio.startListening(); -} - -void loop() { - if (radio.available()) { - char text[32] = ""; - - radio.read(&text, sizeof(text)); - - Serial.print("received: "); - Serial.println(text); - } -} diff --git a/Arduino/transmitter_code/transmitter_code.ino b/Arduino/transmitter_code/transmitter_code.ino deleted file mode 100644 index d31b733..0000000 --- a/Arduino/transmitter_code/transmitter_code.ino +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include -#include - -RF24 radio(A2, A3); // CE, CSN - -const byte address[6] = "00001"; - -void setup() { - Serial.begin(9600); - - radio.begin(); - radio.openWritingPipe(address); - radio.setPALevel(RF24_PA_MAX); - radio.stopListening(); -} - -void loop() { - const char text[] = "Hello World"; - - radio.write(&text, sizeof(text)); -}