Add softwareserial

What could be included in further releases, or for the forum.
Post Reply
GianniDPC
Posts: 35
Joined: Thu Jun 22, 2017 10:09 am

Add softwareserial

Post by GianniDPC » Fri Mar 30, 2018 7:30 pm

Would it be possible to add SoftwareSerial in the next release?

I've had a lot of instances where I would compile an Arduino sketch and get the error message :
"fatal error: SoftwareSerial.h: No such file or directory"

I know most of the STM boards have plenty of hardware serial ports but it would be nice to be able to compile these sketches without changing the code at all.

User avatar
madias
Posts: 1198
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Add softwareserial

Post by madias » Fri Mar 30, 2018 7:59 pm

Because of the plenty numbers of "real" serial ports there is no sense in implementing any soft serial stuff.
You only need 3 changes in every sketch: Something like this

Code: Select all

//#include  // get rid of this
//SoftwareSerial mySerial(10, 11); // RX, TX // get rid of this
#define mySerial Serial2 // or something like this

User avatar
madias
Posts: 1198
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Add softwareserial

Post by madias » Sat Mar 31, 2018 10:16 pm

btw:
PLEASE use the search function:
Ray did this in 2015:
viewtopic.php?f=13&t=6

Post Reply