GLCD_ILI9341 & KS0108 *SOLVED!*

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

GLCD_ILI9341 & KS0108 *SOLVED!*

Post by jgu1 »

Hi!

Sorry, its me again.............

Now I am playing with GLCD ILI9341 in FC 7. But no succes. I use Mega2650 to drive the display.

I can see that Ben have created a component for this display and there have been some correction i FC6

viewtopic.php?f=59&t=17317&hilit=ili and it now work, but with with an Eico. (I have not tested with Eico) but also tested with Mega 2560 in FC6, but not working.

Is this component only for Eico? Another ting, when I look in properties for macro, I cannot see "Clear display" in FC7. this is possible in FC6.
In 2D dashboard panel I am able to move the display around, but not increase the size.

Ben or other, are you kind to help me again again....

Best regard Jorgen
Attachments
IlIDisplayTest.fcfx
(8.72 KiB) Downloaded 395 times
Last edited by jgu1 on Thu Jul 27, 2017 5:49 pm, edited 2 times in total.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_ILI9341!

Post by Benj »

Hello,
Is this component only for Eico? Another ting, when I look in properties for macro, I cannot see "Clear display" in FC7. this is possible in FC6.
The ClearDisplay macro is there for me, here is the latest component you can try to make sure your component is up to date.
gLCD_ILI9341.fcpx
(9.82 KiB) Downloaded 386 times
In 2D dashboard panel I am able to move the display around, but not increase the size.
The fifth icon in from the left at the top of the 2D dashboard Panel is the scale button, click this if you want to be able to scale the size of the component on the panel. The third button in from the left is the move button which is selected by default.

You also need the change the component property Display Method from Point Cloud to Bitmap to allow the scaling to work as expected. Bitmap should be the default mode.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Thank's again Ben. I"ll test it during this weekend.

Br Jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi Ben!

Your file is newer than mine, and now I can see 'clear display'. But it still not work. I suppose it should work on mega2650 also?

I suspect there is an error in my display so I have ordered a new one. Once I've received and tested the new one, you'll hear.

Br. Jorgen

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_ILI9341!

Post by Benj »

Hello Jorgen,

Yes the display component should work with pretty much any micro with the RAM/ROM capabilities, the mega2560 should be fine.

The problem is often that the display driver ICs are so configurable that it's down to the LCD manufacturer on how the actual segments map to the driver and how the LCD power capacitor circuits have been done etc.

Do you have a link to the display you're using and maybe some known working example code to go with it. If you have this then I can check against what I have here and see if there is an easy way to make it work.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi Ben!

Thank's, again.

I bougth the display on ebay, And I have no further data on this. http://www.ebay.com/itm/2-8-TFT-LCD-Dis ... 2749.l2649

I have orderd a couble of new so I am sure it not is the display which is wrong... but If you find something wrong with the component, and male some correction, Ill test it again.....

I seem to be the same as Bachman use

You create a componet for Bachmann in FC6 here: viewtopic.php?f=59&t=17317&hilit=ili Maybe this tell you something---

You Help me with the the Nokia 5110 display and it work fine and I use it. But it could be nice with some color on the screen :D
Br Jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi Ben!

Hope I not am asking to much..................

While I am waiting for my GLCD ILI 9341 display I am testing my program on a KS0108 display.
Work very nice together with FC7 SHT21 component. Splendid. :D

But you know, in all other display, we are able to, let´s say delete a number by by using: Print String " " and then go to same posisition again and update new value again.
This is not possible with KS0108. It did not delete the number if I use: Print String " ", and at last I can´t read the number more. Is there other way to do it or should it be possible to use Print String " " ?

I can clear display and update, but then it is flickering for every update.

Thank¨s in advance
Br Jorgen
Attachments
SHT21 med KS0108 Working.fcfx
(15.29 KiB) Downloaded 350 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi Ben!
News. Some ligth.

During my troubleshooting with the Ili9341 display, I made some test, to ensure it not is my display´s which is defective. You have made some modification here for the ILI9341 in FC6: viewtopic.php?f=59&t=17317&p=73847&hilit=ili#p73847

I tryed to get your corrected file (FC6) and placed it in FC6 directory. Tested it with FC6 and Mr Tido´s program with an Eico40. Working. Test with 2,4` and 2,8`. Both succes.



But I almost try everything with Arduino Mega in FC7, I can not managed to get it working not working in FC7 with Arduino. Do you have any idea what could be wrong, please.

Br. Jorgen

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_ILI9341!

Post by Benj »

Hello,
But you know, in all other display, we are able to, let´s say delete a number by by using: Print String " " and then go to same posisition again and update new value again.
This is not possible with KS0108. It did not delete the number if I use: Print String " ", and at last I can´t read the number more. Is there other way to do it or should it be possible to use Print String " " ?
Make sure the transparent parameter is set to 0, if it is already then let me know as it sounds like it may be a bug.
I tryed to get your corrected file (FC6) and placed it in FC6 directory. Tested it with FC6 and Mr Tido´s program with an Eico40. Working. Test with 2,4` and 2,8`. Both succes.
But I almost try everything with Arduino Mega in FC7, I can not managed to get it working not working in FC7 with Arduino. Do you have any idea what could be wrong, please.
There are two things happening here v6 vs v7 and ECIO vs Arduino.

Have you tried the v6 component with the Arduino and the v7 component with the ECIO? Just so we can be more sure about the current state of things.

Does your v7 Arduino program use hardware SPI? If so then please ensure the hardware SS pin is either used as an output or held high by a pull up resistor.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi again Ben!
Thank´s again. Some good news. The ILI9341 Work almost with Arduino Mega now :lol: . My fault, one of my testwire on Arduino testboard had a bad connection.

Sorry for this inconvenience Ben.

But the only `bug`now is that, when I use Clear display in FC7, not the hole display is cleared (Arduino ? But it in FC6 I clear hole display (Arduino). Look at att. picture.

*****************************
Concerning the KS0108 Display, If I add Print String " " with transperant to 0 and after that I update the value again, I get a white field no new value always white.

Think you can see my passion for displays.

Preciate your help. Thank´s in advance

Br Jorgen
Attachments
Capture.PNG
(16.63 KiB) Downloaded 9574 times
IMG_0408.JPG
IMG_0408.JPG (68.92 KiB) Viewed 15315 times
IMG_0407.JPG
IMG_0407.JPG (75.01 KiB) Viewed 15315 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_ILI9341!

Post by Benj »

Right I've just been through both my v6 and v7 component sources and the initialise, clear, address_set and send_data commands are 100% identical.

Can you attach the .C files from your v6 and v7 projects and that will indicate if you have an earlier v6 component which did things slightly differently as well as give me the working code for the full screen clear.

Also can you confirm that the gLCD component pixel dimension properties are the same in both the v6 and v7 projects just in case the v7 project is using a smaller Y pixel dimension.

Finally can you attach the project that is showing the problem with e KS0108 and I will investigate what is going wrong here.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi Ben!
ILI9341. You vrote:

"Also can you confirm that the gLCD component pixel dimension properties are the same in both the v6 and v7 projects just in case the v7 project is using a smaller Y pixel dimension."

Yes, they where twisted, so when I set 320 in top and 240 in bottom it work :D Perfect, why havent I seen this by myselves. Where do YOU get it from. Thank´s :lol: So now I will play with this display also, make some project and see if it I am able to import some image ect.. I would share..
ILI9341 SOLVED!
*****************
Concerning the KS0108

This I mean, I am not able to update a variable by using " String" space space space " and then new value. I am sure you can see what I mean if you look the att. program.
It work fine in simulation, but not on real world.

The only way I can update value is by clear display. Then it is "flickering" (because everything have to update). Hope you can help, here also. Then you will have peace........(for a while) :lol:
Br Jorgen
Attachments
SHT21 med KS0108 Testing not delete.fcfx
(18.35 KiB) Downloaded 324 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_ILI9341!

Post by Benj »

Great thanks for letting me know, glad the ILI9341 is working nicely for you now.

Regarding the KS0108 please can you try this slightly modified component and see if it improves things at all for you. I'll keep my fingers crossed :D
gLCD_KS0108.fcpx
(35.28 KiB) Downloaded 313 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Sorry Ben. after replacing your new component, the display is blanck, nothing shown on the screen.

Br Jorgen

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: GLCD_ILI9341!

Post by Benj »

Hello Jorgen,

In your program you set the foreground colour to 0, please can you try setting this to 1 using the new component and hopefully this will now work as expected, 1 being black. Alternatively you can probably get rid of the set foreground colour component macro and the default will be black on white.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341!

Post by jgu1 »

Hi Ben!

Yes, now I am in business. It help. The value update very fine and work perfect with your new correction. Change the foreground from 0 to 1. :lol: :lol: I am making a project with these display´s, when I am finish, I will share with all our Flowcode friend´s here. :D

Again many thank´s for your help Ben.

Best regard Jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341 & KS0108 *SOLVED!*

Post by jgu1 »

Hi Ben!

I am trying to make small project with the ILI9341 display. As it is now, the component work fine... :D getting more familiare to use it. And happy for use it in FC.

Can you tell me, what is the "Plot" for and hos do I use it.

And when I compare the speed udate of the display with ( Utube ) arduino IDE and lib. I see mine seemed a litlle slow, is there Amy possibilities to speed it up in Flowcode.
In my project I use an Arduino mega, and I can see other who use Arduino IDE even use smaller devices and it is faster.

It would be fine If it could be a little faster, If not, I May live with it :D

Thanks in advance

Br Jorgen.

billduck
Posts: 159
Joined: Thu Jul 01, 2010 1:57 am
Has thanked: 23 times
Been thanked: 16 times
Contact:

Re: GLCD_ILI9341 & KS0108 *SOLVED!*

Post by billduck »

I want to use the GLCD_ILI9341 with an UNO. The downloadable file below, labeled "ILIDisplay Test", uses an Arduino MEGA.
The connections for the MEGA are MOSI,Clock,Chip Select,D/C.Reset,LED.
I am wondering what the connections are for the UNO. The default pins for n UNO are: MOSI is B3,Clock is B5, not sure what Chip Select is, unless is is a digital output, Not sure what D/C or Reset or LED are.
Attachments
2.4" touchscreen and display
2.4" touchscreen and display
mcyfriend.com.JPG (130.39 KiB) Viewed 11862 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341 & KS0108 *SOLVED!*

Post by jgu1 »

Hi!
I Can see it is NOT the same display as mine. Different pinconnection. I am om holyday now, as soon I come home, I att. a picture. On mine all the dedicated are there. The Led pin is for the background ligth. And remember all the data pin is 3,3v so you need a voltage converter. I used a cd 4050
Br Jorgen

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: GLCD_ILI9341 & KS0108 *SOLVED!*

Post by jgu1 »

Hi!

Hereby, as promised, picture of pinconnection on my display´s

Br Jorgen
Attachments
IMG_0548.JPG
IMG_0548.JPG (70.62 KiB) Viewed 11747 times
IMG_0547.JPG
IMG_0547.JPG (71.75 KiB) Viewed 11747 times

claudemir
Posts: 58
Joined: Sat Nov 03, 2012 7:43 am
Has thanked: 12 times
Been thanked: 5 times
Contact:

Re: GLCD_ILI9341 & KS0108 *SOLVED!*

Post by claudemir »

Good night
GLCD_KS0108 Does it work with pic18f4620 ?, since I have tried several configurations but nothing works on the hardware, but does simulation work perfectly, or do you have some specific configurations that I do not know yet?
Please help me.
Attachments
Flowcode1.fcfx
(5.69 KiB) Downloaded 159 times

Post Reply