This commit is contained in:
cally22
2023-07-07 21:57:41 +02:00
commit dc5f14256e
12 changed files with 523 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef RadioController_h
#define RadioController_h
#include <Arduino.h>
// nRF24L01+
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
class RadioController {
private:
RF24 radio; // CE, CSN
const uint64_t writePipe = 0xE8E8F0F0E2LL;
const uint64_t readPipe = 0xE8E8F0F0E1LL;
public:
void setup(int cepin, int cspin);
void send(String msg);
String receive();
};
#endif