version 1.1
This commit is contained in:
+3
-8
@@ -26,19 +26,14 @@ void RadioController::setup(int cepin, int cspin) {
|
||||
Serial.println("Error initializing radio");
|
||||
} else {
|
||||
Serial.println("Succesfully initializing radio");
|
||||
// radio.openWritingPipe(writePipe);
|
||||
// radio.openReadingPipe(1, readPipe);
|
||||
// radio.setPALevel(RF24_PA_MAX);
|
||||
// radio.disableDynamicPayloads();
|
||||
// radio.setAutoAck(false);
|
||||
// radio.setDataRate( RF24_250KBPS );
|
||||
// radio.enableAckPayload();
|
||||
// radio.setRetries(15, 15); // delay, count
|
||||
|
||||
radio.setDataRate( RF24_250KBPS );
|
||||
|
||||
// Set the PA Level low to try preventing power supply related problems
|
||||
// because these examples are likely run with nodes in close proximity to
|
||||
// each other.
|
||||
radio.setPALevel(RF24_PA_LOW); // RF24_PA_MAX is default.
|
||||
radio.setPALevel(RF24_PA_HIGH); // RF24_PA_MAX is default.
|
||||
|
||||
// to use ACK payloads, we need to enable dynamic payload lengths (for all nodes)
|
||||
radio.enableDynamicPayloads(); // ACK payloads are dynamically sized
|
||||
|
||||
Reference in New Issue
Block a user