Closed Uup115 closed 5 years ago
Hi @Uup115 — thanks for highlighting an issue with Due operation. I don’t have a Due so haven’t had an opportunity to test with one yet, so it is likely there are some compatibility adjustments needed. I will order one right away.
It is good to hear that you are seeing evidence of the radio buttons on the display as that means the basic operations are working.
(1) First, I understand that the Due’s Serial port operation may differ from other targets. We should probably add the following in your setup examples after the Serial.begin(9600);
line to be sure: while (!Serial);
(2) Can you confirm for me:
(3) Assuming you are running an ILI9341 display, presumably the Adafruit_ILI9341 graphicstest
is running properly?
(4) Can you confirm if GUIslice ex01 and ex02 work ok?
I will put in an order for a Due so that I can ensure we have them covered in future testing too.
Thanks!
Hello Calvin,
I really appreciate your quick and enthusiastic response. Thanks!
In response to your questions/requests:
GUIslice version [0.11.2]:
- Initialized display handler [ADA_RA8875(SPI-HW)] OK
- No touch handler enabled
Thanks for your help!
Best Regards
Hello Uup115,
As I'm sure Cal will comment, he and I have been in discussion about using GUISlice with the same Buydisplay.com 5" TFT LCD display you're working with. I, and probably others, look forward to his findings and your efforts as well,
Don
Thank you very much for providing the extra details. The issue is more likely associated with the RA8875 support than the Due. While preliminary support was added for the Adafruit RA8875 driver (in #103 ), I don’t believe it has been tested on hardware yet.
As Don points out, I have already ordered the same EastRising display in order to test & ensure the RA8875 driver is working smoothly, but it may still be a week or two before it arrives.
In the meantime, if you would like to send me a quick email to guislice@gmail.com, I can followup with some test builds that might help us track down the changes we need to get it going for you.
Thanks!
Hello Calvin and Don,
I am more than happy to help with testing... whatever I can do to help. Will follow up with an email.
BTW... Buy Display has a RA8875 driver, which seems better than what Adafruit offers. Among other things, touch calibration is stored in a file, "RA8875Calibration.h". The driver reads this file during compile.
Best Regards.
Just a quick update: thanks to testing by @Uup115 and some minor initialization updates, the basic RA8875 display primitive operations are now working with GUIslice (per branch WIP125-RA8875). However, additional updates will be required in order to get text rendered correctly (since the RA8875 handles built-in fonts differently from other GFX drivers, especially in "text mode").
At this time it does not appear that the Arduino DUE target has introduced a compatibility issue, but I still intend to add this device to my test suite in the future just in case.
Interesting pointer regarding the calibration... it seems that the buydisplay supplied library is actually an old version from sumotoy/RA8875.
Update: Latest repo confirmed to be working on Due + RA8875 using the RA8875’s built-in (internal ROM) font. This font is slightly larger than the Adafruit-GFX default font so users may need to adjust some of the text fields in the existing GUIslice examples accordingly (ie. apply a scale factor to coordinates / dimensions).
The next step would be to add support for custom Adafruit-GFX fonts, as well as text justification. From a testing perspective, it may be more practical to defer these updates until after I have the RA8875 EastRising display hardware on hand (might still take a couple weeks for its arrival).
Thanks again @Uup115 for the initial testing on this hardware!
Update: I now have a 5" RA8875 EastRising display (link: BuyDisplay.com) here for testing.
Support has now been added for the integrated touch driver (Adafruit_RA8875).
Example config: ard-adagfx-ra8875-simple_int
.
This should theoretically work for the 4.3" (480x272), 5" (800x480) and 7" (800x480) displays.
Hello Calvin,
Great! Touch is working nicely. :-) Thanks!
Best Regards
Glad to hear it!
I have now also updated the repo with support for the Adafruit-GFX fonts, including both the default font and custom fonts. The GUIslice examples should now run properly by default (without any scaling necessary).
I will integrate support for the faster (hardware-accelerated) RA8875 ROM fonts in a later update.
The above is using the DRV_DISP_ADA_RA8875 display driver (based on Adafruit_RA8875). I will likely also support the Sumotoy/RA8875 library in a later update, which introduces a number of enhancements and also supports dynamic rotation (not supported by the Adafruit driver)
Hello,
Has anyone successfully ported this library to Arduino Due?
I can successfully compile and upload the examples to DUE. However, most of the time, nothing renders on the LCD. Example "ex04_ard_ctrls" renders nothing but a couple of small circles. I've spent nearly a day trying to find the problem. Sadly, no success.
Does anyone have insight as to how to make this work for Ardiuno DUE? If yes, please help.
Best Regards