View previous topic :: View next topic |
Author |
Message |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia

|
Posted: Fri Jan 31, 2014 8:19 pm Post subject: Fast library for ILI9325 LCD |
|
|
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 |
|
 |
Madf
Joined: 13 Nov 2011 Posts: 179 Location: Moscow

|
Posted: Sat Feb 01, 2014 7:35 am Post subject: |
|
|
Так я и не понял (после просмотра видео), 8 разрядный интерфейс или нет?
На видео вывод цветных картинок тормозит как при выводе через SPI. |
|
Back to top |
|
 |
albertsm
Joined: 09 Apr 2004 Posts: 6197 Location: Holland

|
Posted: Sun Feb 02, 2014 8:33 pm Post subject: |
|
|
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  _________________ Mark |
|
Back to top |
|
 |
aphawk
Joined: 23 Jan 2010 Posts: 175 Location: Brazil

|
Posted: Fri Feb 07, 2014 8:16 pm Post subject: |
|
|
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 |
|
 |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia

|
Posted: Fri Feb 07, 2014 9:03 pm Post subject: |
|
|
No, ILI9341 and ILI9325 are not compatible. |
|
Back to top |
|
 |
aphawk
Joined: 23 Jan 2010 Posts: 175 Location: Brazil

|
Posted: Sat Feb 08, 2014 2:15 am Post subject: |
|
|
Thanks for the information, Mrshilov.
Paulo |
|
Back to top |
|
 |
yahi92
Joined: 23 Feb 2014 Posts: 25
|
Posted: Mon Mar 03, 2014 2:30 pm Post subject: |
|
|
Mrshilov thank you for sharing.
how can i make my own fonts?
(I want to make arabic fonts)
thank you again.
|
|
Back to top |
|
 |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia

|
Posted: Mon Mar 03, 2014 8:31 pm Post subject: |
|
|
Tools/Plugins/Font Editor. |
|
Back to top |
|
 |
yahi92
Joined: 23 Feb 2014 Posts: 25
|
Posted: Tue Mar 04, 2014 4:32 pm Post subject: |
|
|
Mrshilov wrote: | Tools/Plugins/Font Editor. |
yes.I am working on it.
thanks a lot. |
|
Back to top |
|
 |
mohamad_reza_safi_n
Joined: 05 Mar 2014 Posts: 4
|
|
Back to top |
|
 |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia

|
Posted: Wed Mar 05, 2014 2:17 pm Post subject: |
|
|
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 |
|
 |
mohamad_reza_safi_n
Joined: 05 Mar 2014 Posts: 4
|
Posted: Wed Mar 05, 2014 5:26 pm Post subject: |
|
|
thanks ,its working awesome , the speed is greet (it makes me cry)
is it possible than i write & load on lcd in different direction ,i want to say Horizontal & Vertical.
؟؟؟؟؟؟؟؟؟؟ |
|
Back to top |
|
 |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia

|
Posted: Wed Mar 05, 2014 6:22 pm Post subject: |
|
|
No, it's need to rewrite Text Sub. |
|
Back to top |
|
 |
mohamad_reza_safi_n
Joined: 05 Mar 2014 Posts: 4
|
Posted: Wed Mar 05, 2014 9:01 pm Post subject: |
|
|
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 |
|
 |
mohamad_reza_safi_n
Joined: 05 Mar 2014 Posts: 4
|
Posted: Thu Mar 06, 2014 10:41 am Post subject: |
|
|
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 |
|
 |
|