switch from rf24 to espnow
This commit is contained in:
@@ -12,19 +12,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <menuControl.h>
|
||||
#include <nRF24L01.h>
|
||||
#include <RF24.h>
|
||||
#include <SPI.h>
|
||||
// #include <printf.h>
|
||||
|
||||
#include "controlPadInput.h"
|
||||
|
||||
class ControlPad {
|
||||
public:
|
||||
ControlPad(SPIClass *spiPort, uint8_t cePin, uint8_t csnPin);
|
||||
ControlPad();
|
||||
|
||||
bool loop();
|
||||
|
||||
void insertData(const uint8_t *data);
|
||||
|
||||
void setMenuControl(MenuControl* menuControl) { this->menuControl = menuControl; }
|
||||
|
||||
const ControlPadInput * getControlPadDataPtr(uint16_t maxElapsedTime = 0) const;
|
||||
@@ -33,7 +31,6 @@ class ControlPad {
|
||||
|
||||
private:
|
||||
MenuControl* menuControl = nullptr;
|
||||
RF24* radio;
|
||||
ControlPadInput controlInput;
|
||||
|
||||
void receiveData();
|
||||
|
||||
Reference in New Issue
Block a user