Comments (5)
Thanks! I missed that. Update to version 1.1.9 and all should be good.
Software serial compatible pins
- TX: 2,3,4,5,6,7,8,9,10,11
- RX: 4,6,8
from arduino_boards.
Can you please educate me on why TX can be on almost any of the pins but RX is limited to pins 4, 6, or 8?
from arduino_boards.
Sure! Software serial is accomplished by looking for changing edges on the input signal and recording the times, then converting to bits in a byte. For the RX pin to work, it needs to A) have interrupt capabilities and B) be able to detect rising vs. falling edges. Not all pins can do this.
Also, keep in mind that the software serial library is half-duplex, meaning that data can't be received while it is being sent out (also, the loop-back test doesn't work).
from arduino_boards.
Thanks for the info! I thought Pin 10 and Pin 11 had interrupts and therefore could be used for RX?
from arduino_boards.
For the lilypad, pin 10 is assigned to port D, bit 0 and 11 is port D, bit 1, neither of which has the interrupt. Maybe you're used to a different microcontroller? For any micro in Arduino, the board pin name is mapped to some location on the processor, so between boards the underlying abilities of the pin can differ.
The pins_arduino.h defines the mapping. The statement that was broken has to do with converting pin names to register locations on the processor with regards to the interrupts... which is why it broke when attempting to use software serial.
Hope this was revealing!
from arduino_boards.
Related Issues (20)
- Product Documentation HOT 2
- SAMD_21_Dev Variant.cpp RX led pin definition mistake
- Sparkfun nrf52 library missing HOT 2
- ESP-IDF Compatibility HOT 1
- Outdated Arduino cores
- LilyPad USB Plus - incorrect PWM definition
- Missing bootloader make configuration for Qwiic micro
- STM32 Cube Programmer (not found)
- RX_LED Doesn't Work
- Update arm-none-eabi-gcc for SAMD boards HOT 3
- Error downloading boards HOT 1
- SparkFun STM32 Boards Not Found HOT 7
- SoftwareSerial cause freezing on Pro Micro 3.3V 8MHz
- Duplicate flag in expression HOT 1
- 1.8.3 malformed SAMD custom board config breaks arduino-cli HOT 3
- SparkFun RedBoard Turbo: linker errors when using Serial HOT 6
- SAMD21: Increase UART buffer size to 256 bytes (from 64 bytes) HOT 1
- Remove Artemis-based boards from definition file HOT 1
- ESP32 - wish you would sync up to current Espressif ESP32 release HOT 1
- SparkFun_SAMD51_MicroMod not included in SDU library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_boards.