system
August 19, 2014, 2:38am
1
Should I be able to output String object using SoftwareSerial and LiquidCrystal libraries?
Simple lcd.print( Serial object) does not work.
I did try NewSoftwareSerial and it did not work either.
I understand that SoftwareSerial library is included in core software, but not sure if NewSoftwareSerial is there too.
Either way simple lcd.print( Serial object) just does not work.
Any constructive help will be appreciated.
I value your time , let's be reciprocal.
Cheers Vaclav
Here:
lcd.print( Serial object)
you mean:
lcd.print( String object)
right?
You can convert the String object to an array of characters using:
The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.
I don't know if you know about that.
system
August 19, 2014, 3:12am
3
Did not think about converting BACK to array, seems odd.
But I am for KISS.
Thanks
Well if you want to KISS, then why you use the String object and not the array of chars?
I think (I'm not very familiar with the String object) that you can do everything you do with the object with a regular array of chars.
system
August 19, 2014, 2:55pm
5
Because someone already wrote the code base I am using.
Or is the "code once and use many times" philosophy dead?
BTW found that string,c_str() "should" return pointer the LCD class should be able to handle, but it does not.
But it compiles just fine.
I guess I should be able to look into source code / version of String to get some idea what is happening.
system
August 19, 2014, 3:09pm
6
I guess I should be able to look into source code / version of String to get some idea what is happening.
You could also quit with the fancy footwork and post some code.
BTW found that string,c_str()
Nonsense. The operator is dot, not comma, and only a moron names an instance of the String class string.
return pointer the LCD class should be able to handle, but it does not.
Then, it is likely you are using it wrong.
You can only send an object from one device to another, if both devices know what to do with the object.
system
August 19, 2014, 4:23pm
8
PaulS:
I guess I should be able to look into source code / version of String to get some idea what is happening.
You could also quit with the fancy footwork and post some code.
BTW found that string,c_str()
Nonsense. The operator is dot, not comma, and only a moron names an instance of the String class string.
return pointer the LCD class should be able to handle, but it does not.
Then, it is likely you are using it wrong.
Any constructive help will be appreciated.
I value your time , let's be reciprocal.
system
August 19, 2014, 6:38pm
9
Vaclav:
Should I be able to output String object using SoftwareSerial and LiquidCrystal libraries?
Simple lcd.print( Serial object) does not work.
I did try NewSoftwareSerial and it did not work either.
"it did not work".
Sheesh.
Come on, you know the rules
I value my time; why don't you reciprocate?