Bodmer / TFT_HX8357

Arduino library for HX8357 TFT display
118 stars 52 forks source link

Arduino Due #30

Closed 11Naweed11 closed 4 years ago

11Naweed11 commented 4 years ago

Can you modify the library to support Arduino Due? Because mega is just too slow.

Bodmer commented 4 years ago

I created a Due library here sometime ago. Try that one.

11Naweed11 commented 4 years ago

Thanks, haven't tried anything but at least it compiled without any errors . one more thing, can you please point me out to a guide about wiring ? just in case I don't connect the module incorrectly with due.

11Naweed11 commented 4 years ago

and also the library only says ili9481, I have ili9486 16 bit would it make a big difference ?

Bodmer commented 4 years ago

There is no writing guide but the library has quite a few examples and is, at the basic function level, compatible with Adafruit_GFX so you can use the Adafruit online tutorials for the basics.

The ILI9486 is not supported by the Due variant of the library. As the Due variant is based on this Mega version you could port over the differences. The Due library might work with the ILI9486 with the ILI9481 option selected, you could try that on this Mega version before you commit to a library change.

All my "Arduino" effort these days goes into my TFT_eSPI library and that keep me very busy in my spare time so I do not plan to work on these older libraries anymore. The TFT_eSPI library is being updated to support the STM32 Nucleo 64/144 "UNO" compatible boards which are available with much higher performance.

Depending on what you want to do... or expect should be possible... you might also find the Due still does not provide the performance you are looking for.

11Naweed11 commented 4 years ago

Thanks alot for your time. I meant wiring, interfacing the module with the due. In other words which pin of LCD goes to which pin of due? In case of performance, I used mcufriend LCD shield with driver ic LGDP4532 with due and noticed significant performance changes over uno or mega.

Get Outlook for Androidhttps://aka.ms/ghei36


From: Bodmer notifications@github.com Sent: Thursday, January 9, 2020 8:12:40 PM To: Bodmer/TFT_HX8357 TFT_HX8357@noreply.github.com Cc: Ahmad Naweed Rustami Aerostalf@hotmail.co.uk; Author author@noreply.github.com Subject: Re: [Bodmer/TFT_HX8357] Arduino Due (#30)

There is no writing guide but the library has quite a few examples and is, at the basic function level, compatible with Adafruit_GFX so you can use the Adafruit online tutorials for the basics.

The ILI9486 is not supported by the Due variant of the library. As the Due variant is based on this Mega version you could port over the differences. The Due library might work with the ILI9486 with the ILI9481 option selected, you could try that on this Mega version before you commit to a library change.

All my "Arduino" effort these days goes into my TFT_eSPI library and that keep me very busy in my spare time so I do not plan to work on these older libraries anymore. The TFT_eSPI library is being updated to support the STM32 Nucleo 64/144 "UNO" compatible boards which are available with much higher performance.

Depending on what you want to do... or expect should be possible... you might also find the Due still does not provide the performance you are looking for.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Bodmer/TFT_HX8357/issues/30?email_source=notifications&email_token=AEPBHNSFMSM6BWVDFJIS7QLQ45AXBA5CNFSM4KEVRGX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQXNGQ#issuecomment-572618394, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEPBHNUKBXLX7AOJZFXE4NTQ45AXBANCNFSM4KEVRGXQ.

Bodmer commented 4 years ago

There is no wiring, you just plug it in, the library is for 16 bit displays like this one.

11Naweed11 commented 4 years ago

well, mine is a bit different. its not a shield. images

11Naweed11 commented 4 years ago

I found this in the library .cpp file but I don't understand what is A, D or C ? are they port?

pin mapping

Bodmer commented 4 years ago

That display will be a bit of a nightmare to wire up, you can get special adapter shields for it to avoid wiring and these have level translators but you need to ask on the Arduino "Display" forum. It will not work with a Mega without a shield as there are no 5V to 3.3V level translators on the display board and the display expects 3.3V logic. It might work with a Due.

Yes the letters are the processor port designations. Ask for help on the Arduino forum.