From d6be43f96e8d6d8d075344ef7e2a3e91eef183fc Mon Sep 17 00:00:00 2001 From: Lukas Reichwein Date: Thu, 16 Jan 2020 15:48:26 +0100 Subject: [PATCH] removed already in master integrated Code (radioControl) --- Arduino/receiver_code/receiver_code.ino | 27 ------------------- Arduino/transmitter_code/transmitter_code.ino | 22 --------------- 2 files changed, 49 deletions(-) delete mode 100644 Arduino/receiver_code/receiver_code.ino delete mode 100644 Arduino/transmitter_code/transmitter_code.ino 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)); -}