Library blocks 11 pin
mootfrost opened this issue · 1 comments
Please read about common issues first. It addresses the most common problems that people have (whether they know it or not).
Describe the bug
A clear and concise description of what the bug is.
Library initialized to work with 9 and 10 pin prevents servo on 11 pin from working.
Please include:
- Code to reproduce
https://github.com/INebo/Robots/blob/main/Robot.cpp - Expected behaviour
Radio module works only on 9 and 10 pin, peripheral on 11 working - What device(s) are you using? Please specify make, model, and Operating System if applicable.
Arduino UNO
Additional context
Add any other context about the problem here.
It was sooo hard to determine that library prevents 11 pin from working. Switching to another pin was the only cure.
Of course it blocks pin 11. On the ATMega328p, pin 11 is the SPI MOSI line. We can't control that. This is a detail specific to the Arduino AVR core's SPI library, not RF24 library.
It was sooo hard to determine that library prevents 11 pin from working
You could have saved yourself some time by reading the docs' landing page. There's a pinout table at the bottom.
Other resources include anything that describes the GPIO pins' capabilities about the Arduino UNO. Even the official Arduino store page would have told you pin 11 is required for SPI MOSI (aka COPI).