channel and datarate in constructor
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
class MyTransportNRF24 : public MyTransport
|
class MyTransportNRF24 : public MyTransport
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MyTransportNRF24(uint8_t ce=RF24_CE_PIN, uint8_t cs=RF24_CS_PIN, uint8_t paLevel=RF24_PA_LEVEL);
|
MyTransportNRF24(uint8_t ce=RF24_CE_PIN, uint8_t cs=RF24_CS_PIN, uint8_t paLevel=RF24_PA_LEVEL, uint8_t channel=RF24_CHANNEL, rf24_datarate_e datarate=RF24_DATARATE);
|
||||||
bool init();
|
bool init();
|
||||||
void setAddress(uint8_t address);
|
void setAddress(uint8_t address);
|
||||||
uint8_t getAddress();
|
uint8_t getAddress();
|
||||||
@@ -47,6 +47,9 @@ private:
|
|||||||
RF24 rf24;
|
RF24 rf24;
|
||||||
uint8_t _address;
|
uint8_t _address;
|
||||||
uint8_t _paLevel;
|
uint8_t _paLevel;
|
||||||
|
uint8_t _paLevel;
|
||||||
|
uint8_t _channel;
|
||||||
|
rf24_datarate_e _datarate;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user