Compare commits

..

3 Commits

Author SHA1 Message Date
73c0dade20 Readme update 2025-05-11 16:35:45 +02:00
1d92f43e67 Enabling the LNA in the config 2025-05-11 16:29:53 +02:00
6f366fa386 Using a typedef to define the ISR function pointer type 2025-05-11 16:29:15 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,8 @@
void defaultExtIntIsr(void); void defaultExtIntIsr(void);
typedef void (*ExtIntIsr)(void);
class MBPeripherals class MBPeripherals
{ {
public: public:
@ -72,7 +74,7 @@ class MBPeripherals
void _3V3PowerRail(State state); void _3V3PowerRail(State state);
const BoardConfig &_boardConfig; const BoardConfig &_boardConfig;
const RF24 _NRF; const RF24 _NRF;
const void (*_extIntIsr)(void); ExtIntIsr _extIntIsr;
}; };

View File

@ -22,7 +22,7 @@
#define RADIO_CHANNEL 108 //0-125 #define RADIO_CHANNEL 108 //0-125
#define RADIO_NODE_ADDRESS "WEST1" //Weather Station 1 network because the mail box is connected on it #define RADIO_NODE_ADDRESS "WEST1" //Weather Station 1 network because the mail box is connected on it
#define RADIO_PA_LEVEL RF24_PA_MAX //RF24_PA_MIN,RF24_PA_LOW,RF24_PA_HIGH,RF24_PA_MAX #define RADIO_PA_LEVEL RF24_PA_MAX //RF24_PA_MIN,RF24_PA_LOW,RF24_PA_HIGH,RF24_PA_MAX
#define ENABLE_LNA false //true or false #define ENABLE_LNA true //true or false
#define RADIO_DATARATE RF24_250KBPS //Slow datarate to maximize range #define RADIO_DATARATE RF24_250KBPS //Slow datarate to maximize range
#define MAX_SEND_ROUND_RETRIES 5 //If no ACK is received, tries to resend a MAX_SEND_ROUND_RETRIES-1 more times #define MAX_SEND_ROUND_RETRIES 5 //If no ACK is received, tries to resend a MAX_SEND_ROUND_RETRIES-1 more times
//Increase this parameter if the RF link is bad. //Increase this parameter if the RF link is bad.