nRF24 / RF24

OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices
https://nrf24.github.io/RF24
GNU General Public License v2.0
2.21k stars 1.02k forks source link

digitalWrite(LED_BUILTIN, HIGH); Not working after radio.begin(); #541

Closed alkuentrus closed 4 years ago

alkuentrus commented 4 years ago

Hi, I a using an Arduino Nano and IDE 1.8.10. The code attached works fine for another aspects, not for Digital Out for Led pin. If I comment the code radio.begin(); It works fine.... Can you help me? ` #include

include

include

include "printf.h"

RF24 radio(7,8); // Set radio up using pins 7 (CE) 8 (CS) RF24Audio rfAudio(radio,0); // Set up the audio using the radio, and set to radio number 0

void setup() { Serial.begin(115200); printf_begin(); //radio.begin(); pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, HIGH); }

void loop() {

}`

TMRh20 commented 4 years ago

SPI uses pin 13, so you can’t really use the built in LED while using SPI.

On Oct 31, 2019, at 19:55, alkuentrus notifications@github.com wrote:

 Hi, I a using an Arduino Nano and IDE 1.8.10. The code attached works fine for another aspects, not for Digital Out for Led pin. If I comment the code radio.begin(); It works fine.... Can you help me? ` #include

include

include

include "printf.h"

RF24 radio(7,8); // Set radio up using pins 7 (CE) 8 (CS) RF24Audio rfAudio(radio,0); // Set up the audio using the radio, and set to radio number 0

void setup() { Serial.begin(115200); printf_begin(); //radio.begin(); pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, HIGH); }

void loop() {

}`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

alkuentrus commented 4 years ago

Oh my, oh my!!! Did'n remember that!!! Sorry :(

olback commented 4 years ago

@alkuentrus

You should close this issue now that you know what's up so that when other people search for the same issue, they know it's resolved. :+1:

alkuentrus commented 4 years ago

@olback , You are right! Id didn't realize I had to :) Going to do so, thks!