Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Fast library for ILI9325 LCD
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Fri Jan 31, 2014 8:19 pm    Post subject: Fast library for ILI9325 LCD Reply with quote

Library for ILI9325 LCD with 8-bit interface:


And for ILI9325 LCD with 16-bit interface:


LCD is 3/5V compliant.
Library works in Submode = New, so its very easy to include in project and unused Subs are not compiled to save memory space.
Also to save space you may use reduced Fonts, like Font36x56 in example. It has only digits, placed at position 33...42. To correct this shift simply use Digit_font = 1.
Any Fons may be included via $include. Supports both types of BASCOM Fonts - "Color" and "B&W".
You can display 8-bit (BGC) and 16 bit (BIN) pictures. Also 16 bit pictures can be loaded from SPI-Flash ROM. To prepare bin-file from bmp, gif, jpg, wmf, emf, ico I wrote special program Pic2Bin.

Library is fast. I specially made it to work quickly. In this video test program working at 8MHz.
8-bit video - http://youtu.be/-iZbkc4x4s4
16-bit video - http://youtu.be/QCHUqQOTVNE

Based on Mr.Hkipnik's sources. Published under his permission.

20.02.2015 - Library update. Added:
- "Rotate 180°" function,
- SD-Card support (shows BMP-pictures in 262k color mode),
- Proteus model for display (model don't support 262k color, may be later, sorry),
- New examples for "Scroll", "Partial", Touch-Pad, SD-Card.

28.06.2016 Library update.
- Added separate sub for 262k color bmp from SD-card
- Speed up - Line & Circle - 3 times, Filled Circle - 6 times (8bit) & 10 times (16bit)
- Big font support (thanks sstewart)


Last edited by Mrshilov on Wed Jun 29, 2016 6:00 pm; edited 3 times in total
Back to top
View user's profile
Madf

Bascom Member



Joined: 13 Nov 2011
Posts: 179
Location: Moscow

russia.gif
PostPosted: Sat Feb 01, 2014 7:35 am    Post subject: Reply with quote

Так я и не понял (после просмотра видео), 8 разрядный интерфейс или нет?
На видео вывод цветных картинок тормозит как при выводе через SPI.
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6197
Location: Holland

blank.gif
PostPosted: Sun Feb 02, 2014 8:33 pm    Post subject: Reply with quote

Great work, that you for sharing and the demo videos.
Also thanks to Mr. Hkipnik's.
A lot of display code lately, it is hard to keep up Smile

_________________
Mark
Back to top
View user's profile Visit poster's website
aphawk

Bascom Member



Joined: 23 Jan 2010
Posts: 175
Location: Brazil

brazil.gif
PostPosted: Fri Feb 07, 2014 8:16 pm    Post subject: Reply with quote

Mrshilov,

Is possible to use this code with an ILI9341 ? I know that this works with 3.3V, and the ILI9325 works with 5V, but I can use the same library ?

Thanks !

Paulo
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Fri Feb 07, 2014 9:03 pm    Post subject: Reply with quote

No, ILI9341 and ILI9325 are not compatible.
Back to top
View user's profile
aphawk

Bascom Member



Joined: 23 Jan 2010
Posts: 175
Location: Brazil

brazil.gif
PostPosted: Sat Feb 08, 2014 2:15 am    Post subject: Reply with quote

Thanks for the information, Mrshilov.

Paulo
Back to top
View user's profile
yahi92

Bascom Member



Joined: 23 Feb 2014
Posts: 25

PostPosted: Mon Mar 03, 2014 2:30 pm    Post subject: Reply with quote

Mrshilov thank you for sharing.

how can i make my own fonts?
(I want to make arabic fonts)
thank you again.
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Mon Mar 03, 2014 8:31 pm    Post subject: Reply with quote

Tools/Plugins/Font Editor.
Back to top
View user's profile
yahi92

Bascom Member



Joined: 23 Feb 2014
Posts: 25

PostPosted: Tue Mar 04, 2014 4:32 pm    Post subject: Reply with quote

Mrshilov wrote:
Tools/Plugins/Font Editor.


yes.I am working on it.
thanks a lot.
Back to top
View user's profile
mohamad_reza_safi_n

Bascom Member



Joined: 05 Mar 2014
Posts: 4

PostPosted: Wed Mar 05, 2014 12:57 pm    Post subject: ? Reply with quote

hi Mrshilov
i have a problem in using your lib.i have some extra connections in my lcd than i don't know how should i used them with your lib.
cs
&
rd
its my schematic
http://upir.ir/files92be/4d93c1acdb71.pdf
[img]http://upir.ir/files92be/thumbs/e69feadbc06e.bmp[/img]
thanks for lib & your time
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Wed Mar 05, 2014 2:17 pm    Post subject: Reply with quote

RD is not used and must be connected to +3,3V. You can do it via PORTD.0=1.
CS is not used too and must be connected to GND. You can do it via PORTD.3=0.
Back to top
View user's profile
mohamad_reza_safi_n

Bascom Member



Joined: 05 Mar 2014
Posts: 4

PostPosted: Wed Mar 05, 2014 5:26 pm    Post subject: Reply with quote

thanks ,its working awesome , the speed is greet (it makes me cry) Wink
is it possible than i write & load on lcd in different direction ,i want to say Horizontal & Vertical.
؟؟؟؟؟؟؟؟؟؟
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Wed Mar 05, 2014 6:22 pm    Post subject: Reply with quote

No, it's need to rewrite Text Sub.
Back to top
View user's profile
mohamad_reza_safi_n

Bascom Member



Joined: 05 Mar 2014
Posts: 4

PostPosted: Wed Mar 05, 2014 9:01 pm    Post subject: Reply with quote

I attached a file to this post .
I used to use this header in my "codevision" compiler.but its not high speed as your lib
I thought .it might be interesting for you to check.
It have some extra function like:
1-"tftlcd_draw_round_rectangle"
2-"tftlcd_draw_button"
3-"tftlcd_imshow" .... with this function you can show and change size of picture and show gray scale
4-"tftlcd_italic_off" & on
5-"tftlcd_font_effect"
6-"unicode2ascii" for reading from "sd" cards
7-lcd adjustment in two different direction
&........
Its written by my Persian friend "Ali Imanifar"
http://upir.ir/files92be/956c5bfb5757.rar

Its a c header file
it have some samples too if you want them ..say
Good luck
Back to top
View user's profile
mohamad_reza_safi_n

Bascom Member



Joined: 05 Mar 2014
Posts: 4

PostPosted: Thu Mar 06, 2014 10:41 am    Post subject: Reply with quote

Hi yahi92
Its a 8*8 Farsi(Arabic with some extra... ) font you can use it with this lib .
Its created by bascom font editor .
ASCII from 126 to ... i cant remember .. check it

http://upir.ir/files92be/420af591d890.rar
Good luck
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum