Go Down

Topic: Do I have to use mySerial? (Read 154 times) previous topic - next topic


Alright, just a quick question, in the following context, do I have to use "mySerial.available" or can it be "portOne.available"

Code: [Select]
if (mySerial.available() > 0) {


Oct 09, 2019, 08:52 pm Last Edit: Oct 09, 2019, 08:54 pm by jremington
Assuming you refer to Software Serial or similar, it does not matter what name you assign to the instantiated object.


Oct 10, 2019, 04:56 pm Last Edit: Nov 17, 2019, 11:11 am by jackthom41
That's the code where you are assigning a name to your Software Serial Port:
Code: [Select]
SoftwareSerial mySerial(2, 3);
You can change it to anything and use that later in your code & get your output on Arduino Serial Monitor.
My collection of Arduino Projects ====> https://www.theengineeringprojects.com/2015/03/arduino-projects.html

Go Up