SoftwareSerial/AltSoftSerial alternatives

I need a SoftwareSerial alternative that doesn't use up as much CPU time. Unfortunately, AltSoftSerials RX and TX pins are fixed.

Is there any library like AltSoftSerial where the pins are changable? The Arduino is baked onto a PCB, and dont want to order a new one.

Welcome to the forum.

No, those are the two reliable and working libraries (with many limitations).

Can you tell more about your project ?
Do you use a microcontroller as a Arduino-compatible or a full Arduino board ? Which one ? What is your project ? What are you communicating with. Can you use the default Serial port and upload a sketch via the ICSP and a programmer ? What is your sketch doing ? Why is it important to have more time ? It is a typical beginner's mistake to switch to a faster Arduino board and it does not help because the sketch and the libraries use a lot of delay().

I think that you made a mistake and have to deal with it, but maybe someone else has a good idea.

Consider NeoSWSerial: NeoSWSerial - Arduino Libraries

Forum announcement: NeoSWSerial - SoftwareSerial replacement with attachInterrupt

This class supports the following MCUs: ATtinyx61, ATtinyx4, ATtinyx5, ATmega328P (Pro, UNO, Nano), ATmega32U4 (Micro, Leonardo), ATmega2560 (Mega), ATmega2560RFR2, ATmega1284P and ATmega1286

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.