Visual TFT

General discussion on Visual TFT Software.
Post Reply
Author
Message
DinoDen
Posts: 3
Joined: 26 Apr 2016 19:45

Visual TFT

#1 Post by DinoDen » 06 Mar 2017 19:04

Hi.

I am using Mikrobasic Pro with the EasyPic V7 . I am also using the Easy TFT display. The problem is that I cant seem to
display a 320 X 240 .bmp. I followed the Visual TFT pdf,s / how to's from the Mikroelectronica web site with no luck.
My code is generated fine with the Visual TFT and downloads to the EasyPic V7 with a PIC18F45K22 installed. No errors
that I can see or from the compiler. Any ideas? Any Mikrobasic examples?

Thanks,

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Visual TFT

#2 Post by lana.arsic » 07 Mar 2017 14:57

Hi,

You can try example from attachment,
it displays bmp image on EasyTFT on EasyPIC v7 board.

If you still have some problems, can you post your code here
and/or image which you are trying to display?

Kind regards,
Lana
Attachments
EasyTFT_EasyPICv7.zip
(35.8 KiB) Downloaded 212 times

puffeltje
Posts: 48
Joined: 29 Aug 2010 19:06

Re: Visual TFT

#3 Post by puffeltje » 21 Jun 2017 22:25

Lana,

i tried your example with my new easyTFT but the display is turning out wrong. The colors are wrong (black turns out white, Red turns out yellow, white turns out black. it looks if the colors are in negative), the right side of the display looks if it isn't initialized, the picture is rotated 90 and mirrored.

Is my easyTFT faulty?

(mikrobasic v7.1.0)
(easypic7)

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Visual TFT

#4 Post by lana.arsic » 22 Jun 2017 11:09

Hi,

I'm sorry because of this inconvenience.

Graphic controller ILI9341 was not in production
for a while, that is why it was changed with ST7789V.

The only line which needs to be changed in previous project is
TFT_Init_ILI9341_8bit(320, 240) (located in Project_driver.mbas)
with TFT_Init_ST7789V_8bit(320, 240).

But just in case, I'm sending whole example in attachment.

Kind regards,
Lana
Attachments
EasyTFT_EasyPICv7.zip
(35.85 KiB) Downloaded 135 times

puffeltje
Posts: 48
Joined: 29 Aug 2010 19:06

Re: Visual TFT

#5 Post by puffeltje » 22 Jun 2017 19:54

oke, your example works, but....

i get errors when i do the next steps:
- unzip project to harddisk
- switch to VTFT with F12
- change the property Orientation of screen1 to dpoPortrait
- build the project
- on the question if i want to merge code i answer yes
- switch back to the code with F12

in the file project_driver.mbas wich is displayed the errors apear.
when i scroll up in this file to the sub procedure Drawscreen i see in the if-else-then construction a call to TFT_Init_ILI9341_8bit.

if i look at the project settings with shift+ctrl+E and go to the tab VTFT setting i see on the general tab that the displaycontroller is ILI9341_8bit. It is grayed out. When i try to create a new hardware pattern i can't select ST7789V display controller, it's not in the dropdownlist.


i want to return the easyTFT because it is not the same as advertised. which action must i take to send it back and get a refund of my costs (including customs fee), or the action to replace the easyTFT for a version with ILI9341.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: Visual TFT

#6 Post by lana.arsic » 23 Jun 2017 14:35

Hi,
puffeltje wrote: When i try to create a new hardware pattern i can't select ST7789V display controller, it's not in the dropdownlist.
I'm sorry for this inconvenience, I have reported this issue to our developers.

But TFT Library in the newest version of the compiler is made on that way
that even when you use function TFT_Init_ILI9341_8bit with ST7789V controller it should work properly.

I have declared TFT_DATAPORT on LATD in previous example,
instead of PORTD, that is why it didn't work with TFT_Init_ILI9341_8bit.
I'm sending corrected example in attachment with new hardware pattern which you can try.

You may also need to Rebuild all libraries (in Library manager) before using it.

If you still want replacement, you can submit a ticket:

https://helpdesk.mikroe.com/index.php?/Tickets/Submit

Kind regards,
Lana
Attachments
EasyPICv7_EasyTFT_ST7789V.zip
(39.82 KiB) Downloaded 174 times

puffeltje
Posts: 48
Joined: 29 Aug 2010 19:06

Re: Visual TFT

#7 Post by puffeltje » 23 Jun 2017 20:15

Lana,

this example works. I can now also change items in VTFT without problem (except the fact that ROM is not enough for some serious project, now it's time to experiment with the easyTFT and my mini-32)

the only thing i had to manual changed was replacing "TFT_Init_ILI9341_8bit(320, 240)" located in Project_driver.mbas with TFT_Init_ST7789V_8bit(320, 240). i can live with that. It seems that i only have to change it once. every change in VTFT is working without changing the code again. Hoping that ST7789V soon be available in the dropdownlist.

Sorry for my last responce. that was frustration because the examples didn't work when i tried to learn to work with a new object.

At this moment i can continu my work with the easyTFT

Post Reply

Return to “Visual TFT General”