View previous topic :: View next topic |
Author |
Message |
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Thu Dec 16, 2010 2:46 pm Post subject: Graphic Sample Routines for ILI9320 Controler 3,2" TFT |
|
|
Hi,
little Graphic Sample for ILI9320 Controller.
3,2" on eBay. TFT, Touch, SD-Card
basicly your code has to be this way:
Code: |
$include "ILI9320_declarations.inc"
do
....
loop end
$include "ILI9320_functions.inc"
$include "Font8x8.font"
$include "Font12x16.font"
|
Included Mainfile ILI9320_six1.bas is for X-Mega!
little Video
Graphic 320x240
have fun, Michael _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
ex4
Joined: 13 Jan 2006 Posts: 1062 Location: indonesia
|
Posted: Sat Dec 18, 2010 2:58 am Post subject: |
|
|
wow
very nice
is there any ATMEGA version?
or is it compatible? |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Sat Dec 18, 2010 8:11 am Post subject: |
|
|
it is compatible for mega!
in my first post i show you, how to insert into your code.
it's easy... only including
$include "ILI9320_declarations.inc" before main loop
and
$include "ILI9320_functions.inc"
$include "Font8x8.font"
$include "Font12x16.font" after main loop.
in file ILI9320_declarations.inc you can setup the pins to display.
if there are questions, feel free to ask me _________________ For technical reasons, the signature is on the back of this message.
Last edited by six1 on Sat Dec 18, 2010 8:43 am; edited 1 time in total |
|
Back to top |
|
|
ex4
Joined: 13 Jan 2006 Posts: 1062 Location: indonesia
|
Posted: Sat Dec 18, 2010 8:21 am Post subject: |
|
|
nice, but $60,jeez
Quote: | feel dree to ask me Very Happy |
free or dare to ask,hehehehe |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Sat Dec 18, 2010 8:47 am Post subject: |
|
|
ex4 wrote: | nice, but $60,jeez
Quote: | feel dree to ask me Very Happy |
free or dare to ask,hehehehe |
yes about 45 EUR isn't that cheap... but remember: Displays 128x64 from LEDSEE in only blue/white are at 20 EUR with no color with no sd card and no touch... and graphic isn't good on 128x64.
This Display is the best i've every seen for this mony! _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
ex4
Joined: 13 Jan 2006 Posts: 1062 Location: indonesia
|
Posted: Sat Dec 18, 2010 10:50 am Post subject: |
|
|
what? got sd card
touch+sd card+color for 45EUR
worth of money
oh yes, have you apply the touchscreen stuff sir? |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Sat Dec 18, 2010 11:50 am Post subject: |
|
|
the Touch is read by interrupt on Pin and SPI. SD Card is on same SPI with dif. /CS.
Code is already done!
have a look at German Bascom Forum...
http://bascomforum.de/ _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
entry2
Joined: 29 Jul 2006 Posts: 54
|
Posted: Mon Dec 20, 2010 10:42 am Post subject: comercial license? |
|
|
Dear Six1,
you wrote in the code, that all ist GPL and only for privat use. Do you think about a license version for commercial products?
Best regards,
Stefan. |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Mon Jan 03, 2011 10:35 am Post subject: |
|
|
Error correction!
- Text meight not work since V8!
- better Port/Pin setup
V11 _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Tue Jan 04, 2011 12:39 pm Post subject: |
|
|
...inspired by SDoux i've implemented Video
240*200Px 65K Color
Preview Video... _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Jan 04, 2011 12:54 pm Post subject: |
|
|
Wow, in color, that is very impressive!
Thanks for the video. It is great to see that you can do these things with an 8 bit micro _________________ Mark |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
MAK3
Joined: 24 Sep 2010 Posts: 449 Location: Germany
|
Posted: Tue Jan 04, 2011 3:58 pm Post subject: |
|
|
Hello,
it is also a good project to see what you can do already with Bascom and XMEGA !
I'm curious to see how it works with XMEGA DMA and when pictures or frames are prefeched in cache (SDRAM).
MAK3 |
|
Back to top |
|
|
mpathma
Joined: 11 Mar 2007 Posts: 25 Location: MALAYSIA
|
Posted: Wed Jan 05, 2011 3:32 am Post subject: |
|
|
Hi,
this is great, always dreamed of color lcd interface. Great Work.
with me I have few 2.8" TFT LCD which uses use's ILI9328 controller
I check both data sheet the look almost the same.
if not can you advice me the migration needed.
Thanks for the good work.
M.Pathma |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Wed Jan 05, 2011 2:10 pm Post subject: |
|
|
i will give the code but there are some Problems to be fix.
The AVI Video is splitted into seperat BMP's. Those BMP's are all in one File.
BMP Data is ordered bottom right to left top! So i had to read from the end to the begining of the file! It costs a lot of time to calculate this.
Second is the slow data transfer from SD-Card. I'm searching on a solution to fix that.
Other routines of mine to display BMP's are working by reading data line by line and displaying them. That solution is to slow for video.
For video i'm reading a whole picture into xram (120x100Px * 4Byte) and double the height and width while writing data to display.
Picture quality is good enough, but as i say speed is fast slow motion
I had to speed up the sd card transfer by 2 or 4 to get very good results!
Reading one picture data is 177ms! plus displaying data... _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
|