From 50b18a9c7dc39bd27db7405567b7d27f338100ff Mon Sep 17 00:00:00 2001 From: maniacbug Date: Mon, 19 Dec 2011 06:19:25 -0800 Subject: [PATCH 1/9] Reduce delays in startWrite down to only required delays --- RF24.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RF24.cpp b/RF24.cpp index 574910b..c25a869 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -481,7 +481,7 @@ void RF24::startWrite( const void* buf, uint8_t len ) { // Transmitter power-up write_register(CONFIG, ( read_register(CONFIG) | _BV(PWR_UP) ) & ~_BV(PRIM_RX) ); - delay(2); + delayMicroseconds(150); // Send the payload write_payload( buf, len ); @@ -489,7 +489,6 @@ void RF24::startWrite( const void* buf, uint8_t len ) // Allons! ce(HIGH); delayMicroseconds(15); - delay(2); ce(LOW); } From 8493b9a60e694d9824bf3a91c30c5d9e9e2094f8 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:32:21 -0800 Subject: [PATCH 2/9] Correct the comment for pin #'s --- examples/led_remote/led_remote.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/led_remote/led_remote.pde b/examples/led_remote/led_remote.pde index 02f89f5..5219a37 100644 --- a/examples/led_remote/led_remote.pde +++ b/examples/led_remote/led_remote.pde @@ -34,7 +34,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From a70da53c22540ba5d98f26f252c95156de89d1ee Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:32:45 -0800 Subject: [PATCH 3/9] Correct the comment for pin #'s --- examples/pingpair/pingpair.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pingpair/pingpair.pde b/examples/pingpair/pingpair.pde index 5f64005..b9d74ac 100644 --- a/examples/pingpair/pingpair.pde +++ b/examples/pingpair/pingpair.pde @@ -24,7 +24,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From 6d25fbebfdec0d91ccf481a3bf46013717aa9ed9 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:33:17 -0800 Subject: [PATCH 4/9] Correct the comment for pin #'s --- examples/pingpair_dyn/pingpair_dyn.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pingpair_dyn/pingpair_dyn.pde b/examples/pingpair_dyn/pingpair_dyn.pde index cea56ee..eb7c594 100644 --- a/examples/pingpair_dyn/pingpair_dyn.pde +++ b/examples/pingpair_dyn/pingpair_dyn.pde @@ -21,7 +21,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From 332fd03192b0e8a499b28f98d33ea8401f6b626e Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:33:40 -0800 Subject: [PATCH 5/9] Correct the comment for pin #'s --- examples/pingpair_irq/pingpair_irq.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pingpair_irq/pingpair_irq.pde b/examples/pingpair_irq/pingpair_irq.pde index 2c4f583..dbfdb99 100644 --- a/examples/pingpair_irq/pingpair_irq.pde +++ b/examples/pingpair_irq/pingpair_irq.pde @@ -22,7 +22,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From 6a7c42bdeb0a878d3a3267453225bde967cabed5 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:38:56 -0800 Subject: [PATCH 6/9] Correct the comment for pin #'s --- examples/pingpair_pl/pingpair_pl.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pingpair_pl/pingpair_pl.pde b/examples/pingpair_pl/pingpair_pl.pde index 94a0da5..0f97e36 100644 --- a/examples/pingpair_pl/pingpair_pl.pde +++ b/examples/pingpair_pl/pingpair_pl.pde @@ -24,7 +24,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From 0f9b17269701a4bcb512e9a6f8568ca761d1140a Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:44:55 -0800 Subject: [PATCH 7/9] Correct the comment for pin #'s --- examples/pingpair_sleepy/pingpair_sleepy.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pingpair_sleepy/pingpair_sleepy.pde b/examples/pingpair_sleepy/pingpair_sleepy.pde index 809679e..68d53b7 100644 --- a/examples/pingpair_sleepy/pingpair_sleepy.pde +++ b/examples/pingpair_sleepy/pingpair_sleepy.pde @@ -31,7 +31,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From c1f71ebcb7b095b56d3ab786e210350d323c8e27 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:45:25 -0800 Subject: [PATCH 8/9] Correct the comment for pin #'s --- examples/scanner/scanner.pde | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/scanner/scanner.pde b/examples/scanner/scanner.pde index 6e74286..4f8fc92 100644 --- a/examples/scanner/scanner.pde +++ b/examples/scanner/scanner.pde @@ -1,4 +1,3 @@ - /* Copyright (C) 2011 James Coliz, Jr. @@ -27,7 +26,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10); From de994ba5efb207886ef274c5be1f78e52a961c6e Mon Sep 17 00:00:00 2001 From: maniacbug Date: Tue, 20 Dec 2011 15:45:50 -0800 Subject: [PATCH 9/9] Correct the comment for pin #'s --- examples/starping/starping.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/starping/starping.pde b/examples/starping/starping.pde index 97b0953..9b76ee9 100644 --- a/examples/starping/starping.pde +++ b/examples/starping/starping.pde @@ -31,7 +31,7 @@ // Hardware configuration // -// Set up nRF24L01 radio on SPI bus plus pins 8 & 9 +// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 RF24 radio(9,10);