|
Post by vulrath on Nov 29, 2017 15:02:11 GMT
Is there a serial LCD library that works with the Shieldbuddy without a rewrite? My project was originally designed for an Arduino Mega clone and the sketch it was running made heavy use of the SerLCD lib. Since this relies on functions in the ATMEGA library (and SoftwareSerial, which also doesn't work), it obviously won't work with the Infineon chip the ShieldBuddy sports as-is.
I could simply write to the Serial0 port, as I did earlier while testing, but that results in pulsing characters on the screen and strange behavior on the part of the cursor, which just looks awful. Plus, I had an timed auto-dim feature in my project.
Any ideas? I'd like to see if there's something already written before I go and attempt a full-scale rewrite of a library.
|
|
|
Post by Admin on Nov 29, 2017 15:19:49 GMT
Hi, which LCD shield are you using? The 16x8 LCD and the TFT Touch displays work fine.
|
|
|
Post by vulrath on Nov 29, 2017 15:28:17 GMT
I am using this one: www.sparkfun.com/products/9395I have another (non-serial) display shield lying around that I tested with LiquidCrystal that worked perfectly, but my application calls for the serial-enabled display so I'd like to get that one running if possible.
|
|
|
Post by Admin on Nov 29, 2017 15:44:41 GMT
You should be able to use the RX and TX pins (D0 & D1) on the ShieldBuddy and then use:
SerialRxTx.begin(9600);
SerialRxTx.print("Hello");
Which pins do you use on the Mega?
|
|
|
Post by vulrath on Nov 29, 2017 16:45:03 GMT
On the Mega, I was using SoftwareSerial to emulate a Tx pin on D2.
On the ShieldBuddy I've been using D14 (Tx0) to do exactly that, but when you loop it the results look less than desirable. I'm also looking for easy access to the enhanced functionality that the SerLCD library offers, most notably clear(), setBrightness(), and setPosition().
Edit: I should probably also mention that I'm working in the Arduino IDE.
|
|
|
Post by Admin on Nov 29, 2017 19:09:13 GMT
Hi, bear in mind that the Shieldbuddy is probably 50x faster than a Mega so you might be swamping the display. You could try putting millis(10) before each write.
|
|
|
Post by vulrath on Nov 29, 2017 19:31:06 GMT
I admit, that is not something I had considered. I will try the test code again with the delays.
|
|