TFT display library?

143 views
Skip to first unread message

Mike

unread,
Jun 20, 2022, 2:40:43 PM6/20/22
to jallib
Hi,

Does anything exist for driving one of these TFT displays?  It uses an ILI9341 driver.


s-l1600.jpg
Regards,
Mike

vsurducan

unread,
Jun 21, 2022, 2:51:09 AM6/21/22
to jal...@googlegroups.com
Check on Arduino. You will need to port it to jal.
best wishes

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/3789cc3c-b114-482b-86c5-fe8a01978308n%40googlegroups.com.

Mike

unread,
Jun 21, 2022, 8:39:45 AM6/21/22
to jallib
Yep, thanks.

Regards,
Mike

Rob CJ

unread,
Jun 21, 2022, 9:06:17 AM6/21/22
to jallib
Hi Mike,

I got the same request some time ago from somebody else. The module name was an MSP2401 and you also have the MSP2402 which has a toch screen. Both use the same ILI9341 chip. For the touch screen they use an MSP430.

I had a quick look at it and at an Arduino driver from Adafruit and it seems doable to make a library for it (including the touch screen although that would be a separate library). But I think the JAL graphics library may also need extension.

I was in doubt to make a library but I currently have no use for this display. 

Kind regards,

Rob


Van: 'Mike' via jallib <jal...@googlegroups.com>
Verzonden: dinsdag 21 juni 2022 14:39
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] TFT display library?
 

Mike

unread,
Jun 21, 2022, 11:52:02 AM6/21/22
to jallib
Okay, thanks Rob.  I haven't purchased one yet, but I probably will.  I'm replacing the LCD in my Fluke 8050A.  I already have something running on the larger (1.3") 128x64 I2C OLED that uses the SH1106 driver, but it still seems too small.  I'll post if I wind up writing something for the TFT.

IMAG1477.jpg

Regards,
Mike

Rob CJ

unread,
Jun 22, 2022, 2:42:06 AM6/22/22
to jal...@googlegroups.com
Hi Mike,

Nice. If you are making a JAL library. Have a look at the style guide: http://justanotherlanguage.org/content/jallib/tutorials/tutorial_style_guide

The author is the original author's name. The library may have been modified and adapted by adapters.The compiler helps readers to know which compiler version is needed to use this file (no space between operator and version: >=2.5r6). The revision field was used by SVN but is no longer used, it is still there for backward compatibility for certain validation tools.
All JAL files are validated to comply with the style guide. This makes JAL libraries - in contract to Arduino libraries - more consistent.

I do have some additional tips (not part of the style guide but might have been part of it):
  • Write code that a human can understand (including names of variables, procedures and functions). What I mean is not combining too many instructions. The compiler will understand but if for some reason a bug need to be fixed, it makes life easier if instructions are split. For that reason you will see in some of my libraries two instructions that could easily be combined into one but I do that for the sake of readibility of the code. I have seen Arduino libraries that I could hardly understand because of combining too many instructions (and the use of the C programming languages does not help either).
  • I hide the implementation from the usage of the library. I do that by defining prototypes of all public functions and put them at the top of the library. In that way you have all procedures and functions together without the need to scroll through the whole library to see which functions are provided by the library. The disadvantage is that you have to duplicate the procedure/functions together with their description on what they do, see for example my latest library for the pca9685.
These are just hints, not mandatory.

If you want I can upload your library and make it part of the release. 

Good luck!

Kind regards,

Rob





Van: 'Mike' via jallib <jal...@googlegroups.com>
Verzonden: dinsdag 21 juni 2022 17:52

PtrZet

unread,
Jun 22, 2022, 9:26:28 AM6/22/22
to jal...@googlegroups.com

Hi Rob and Mike

Here Ptr. It was me who asked Rob two month ago if there was a lib for ILI9341. There are very nice cheap screens with that driver.

I got it working on a Wemos D1 (variant of Arduino). After downloading the datasheet and using the arduino-ILI9341 I tried to make a lib for JAL, but after a quarter of an hour there came a cascade of other Arduino libs that were used and I thougt that also extending JAL libs had to change. So I stopped with that project. But I’m very interested. Arduino is for me too much Ikea: follow the instructions and all is well. With JAL you are more free.

 

Peter

 

Verzonden vanuit Mail voor Windows

 

Van: Rob CJ
Verzonden: woensdag 22 juni 2022 08:42
Aan: jal...@googlegroups.com
Onderwerp: Re: [jallib] TFT display library?

 

Hi Mike,

 

Nice. If you are making a JAL library. Have a look at the style guide: http://justanotherlanguage.org/content/jallib/tutorials/tutorial_style_guide

 

The author is the original author's name. The library may have been modified and adapted by adapters.The compiler helps readers to know which compiler version is needed to use this file (no space between operator and version: >=2.5r6). The revision field was used by SVN but is no longer used, it is still there for backward compatibility for certain validation tools.

All JAL files are validated to comply with the style guide. This makes JAL libraries - in contract to Arduino libraries - more consistent.

 

I do have some additional tips (not part of the style guide but might have been part of it):

  • Write code that a human can understand (including names of variables, procedures and functions). What I mean is not combining too many instructions. The compiler will understand but if for some reason a bug need to be fixed, it makes life easier if instructions are split. For that reason you will see in some of my libraries two instructions that could easily be combined into one but I do that for the sake of readibility of the code. I have seen Arduino libraries that I could hardly understand because of combining too many instructions (and the use of the C programming languages does not help either).
  • I hide the implementation from the usage of the library. I do that by defining prototypes of all public functions and put them at the top of the library. In that way you have all procedures and functions together without the need to scroll through the whole library to see which functions are provided by the library. The disadvantage is that you have to duplicate the procedure/functions together with their description on what they do, see for example my latest library for the pca9685.

These are just hints, not mandatory.

 

If you want I can upload your library and make it part of the release. 

 

Good luck!

 

Kind regards,


Rob

 

  •  

 

 

Van: 'Mike' via jallib <jal...@googlegroups.com>
Verzonden: dinsdag 21 juni 2022 17:52
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] TFT display library?

 

Okay, thanks Rob.  I haven't purchased one yet, but I probably will.  I'm replacing the LCD in my Fluke 8050A.  I already have something running on the larger (1.3") 128x64 I2C OLED that uses the SH1106 driver, but it still seems too small.  I'll post if I wind up writing something for the TFT.

 

Regards,

Mike

 

On Tuesday, June 21, 2022 at 9:06:17 AM UTC-4 rob...@hotmail.com wrote:

Hi Mike,

 

I got the same request some time ago from somebody else. The module name was an MSP2401 and you also have the MSP2402 which has a toch screen. Both use the same ILI9341 chip. For the touch screen they use an MSP430.

 

I had a quick look at it and at an Arduino driver from Adafruit and it seems doable to make a library for it (including the touch screen although that would be a separate library). But I think the JAL graphics library may also need extension.

 

I was in doubt to make a library but I currently have no use for this display. 

 

Kind regards,


Rob

 

Van: 'Mike' via jallib <jal...@googlegroups.com>
Verzonden: dinsdag 21 juni 2022 14:39
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] TFT display library?

 

Yep, thanks.

 

Regards,

Mike

 

On Tuesday, June 21, 2022 at 2:51:09 AM UTC-4 vasile wrote:

Check on Arduino. You will need to port it to jal.

best wishes

 

On Mon, Jun 20, 2022 at 9:40 PM 'Mike' via jallib <jal...@googlegroups.com> wrote:

Hi,

 

Does anything exist for driving one of these TFT displays?  It uses an ILI9341 driver.

 

 

Regards,

Mike

 

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/3789cc3c-b114-482b-86c5-fe8a01978308n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/b4e118c2-31dc-4e3e-86ba-60b1ec7bf91cn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.

rob...@hotmail.com

unread,
Aug 21, 2022, 4:29:07 AM8/21/22
to jallib
Hi Mike,

One question and one update (not related to the question but something old):
1) Do you have any plans to make a library for this display? It would be a nice addition to Jallib.
2) The not related issue: I have spend days on finding the root cause of the compiler issue you mentioned some time ago where you had put a while true loop end loop statement after a case statement. In that particular situation  the compiler does not generate all code. I did not manage to find the root cause yet. I initially thought it was an optimization issue and indeed the code is generated but optimized 'away' but the problem seems to be somewhere else. Since it looks like a corner case to me I will stop looking at it for now and will pick it up after my unconscious mind has figured it out (that may take some time). I will start to look at another compiler issue that was reported by Tony who reported an error in the use of a constant array since that seems to be a more urgent issue to fix.

Kind regards,

Rob


Op maandag 20 juni 2022 om 20:40:43 UTC+2 schreef Mike:

rob...@hotmail.com

unread,
Aug 24, 2022, 1:53:03 PM8/24/22
to jallib
Hi Mike,


And will build a JAL library for it. This version has a touch screen so once I finished the display library I add the touch feature later.

Kind regards,

Rob


Op zondag 21 augustus 2022 om 10:29:07 UTC+2 schreef rob...@hotmail.com:

Mike

unread,
Aug 30, 2022, 6:31:00 AM8/30/22
to jallib
Hi Rob,

I have the display and will work on writing code at some point, but the project has been pushed back.  If I get anything done on it I'll definitely post it.

Thanks,
Mike

Rob CJ

unread,
Aug 30, 2022, 8:50:31 AM8/30/22
to jal...@googlegroups.com
Hi Mike,

I ordered one display and started working on a library last weekend. I have implemented the most important features but need the display to test it.

I will let you know as soon as I have something you can use.

Kind regards,

Rob

Met vriendelijke groet,
Rob Jansen

From: 'Mike' via jallib <jal...@googlegroups.com>
Sent: Tuesday, August 30, 2022 12:30:59 PM
To: jallib <jal...@googlegroups.com>
Subject: [jallib] Re: TFT display library?
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.

rob...@hotmail.com

unread,
Sep 10, 2022, 9:57:17 AM9/10/22
to jallib
Hi Mike (and others),

I uploaded the library for the ili9341 display including sample files and examples of bitmap files to GitHub. It will be available in the next bee-package.

I did not yet solve the problem that the PIC goes haywire when the program memory increases due to the use of a picture. It does not seem like a programing error (for now). There are two sample files:
1) One using text and graphics and no picture or using graphics with a picture but no text (it is explained in the sample file)
2) One copying bitmap images from an sd card to the display. The images that I used are in a project folder project/glcd_ili9341 but that folder will also be in the next bee-package.

I will make a Youtube video of it later. But for now .. have fun!

Next challenges:
1) The PIC going haywire (will look at it later)
2) A library for the ili9341 touch screen (will look at that first)

Kind regards,

Rob


Op dinsdag 30 augustus 2022 om 14:50:31 UTC+2 schreef rob...@hotmail.com:
Reply all
Reply to author
Forward
0 new messages