Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > New 4.3" touchscreen LCD for Propeller: "used" screens for $18  Forum Quick Jump
 
New Topic Post Reply Printable Version
648 posts in this thread.
Viewing Page :
 
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

tdeyle
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 64
 
   Posted 12/6/2009 2:21 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
That's awesome! I am guessing from your post that it took more than just changing settings, more like rewriting the ASM section.

Since I am trying to learn Propeller Assembly, I am excited to compare the changes that were made from the original driver!
Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/6/2009 3:35 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
No, this driver is very easy to understand, and requires only a few changes. Mainly the pixel clock output and DataEnable.
The nice thing is that the display is not so timing sensitive as VGA Monitors, it works with Vertical and horizontal frequencies in a wide range.

I have attached an early version of the 240x136x1 driver with the VGA Demo and graphics-driver you posted.
This Bitmap driver version has the fewest changes, so it's the best to compare with the original. But the last rows do not work.
The newer drivers, which I will post later allows to pass the Pin settings to the driver, so no constants in the driver must be changed.

The driver has a little test code incorporated, so you can first try the TDS__.spin file alone. Then try it with the demo.spin.

Andy

File Attachment :
TSDgraphicsDEMO_preview.zip   16KB (application/x-zip-compressed)
This file has been downloaded 62 time(s).
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 6:57 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Ariba said...
I have adapted this driver to the 4.3" LCD last night :)

I made 3 versions:
480 x 272 1-bit pixels, uses 16 kByte of memory
240 x 136 1-bit pixels, uses only 4 kByte
240 x 136 2-bit pixels, uses 8 kByte memory

Ariba:  I would love to see the 480x272 version!  Can different rows have different colors?


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 7:03 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
I spent hours yesterday doing everything I could think of to increase the framerate of the 6-bit fullscreen driver, but can't get much past 11 fps.
It's not too bad, considering, but the flicker is still noticeable...

Think I'll wrap that up and try a new version with the graphics limited to a 320x240 area. That should let me up the rate.
Think I need about 20 fps to reduce the flicker to acceptable levels...

I originally though I had no flicker with much lower fps, but I was duped by a bug in the Parallax VGA code that doesn't do the pixel clock correctly when it's below 4_000_000...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/7/2009 9:02 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Rayman said...
Ariba: I would love to see the 480x272 version! Can different rows have different colors?


The colors are now settable for every 32x32 pixel tile, like in the VGA original driver.
But I can make a version with 1 color per row (=272 words for the colors).
It would also be possible to change it only every n rows, i.e 8 rows for text lines. Just say what you need ;)

Andy
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 9:21 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Per tile coloring is perfect... Does it have to be full screen? I can see cases where you only need 1-bit graphics in a less than a fullscreen window...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/7/2009 10:44 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
You can change some constants for pixel width and height, to get a lesser size, but the window is then always top left placed.
It would be possible to add a left and top margin, but the current driver hasn't that implemented.
It is really only a bitmap driver, and you can't use the remaining part outside the window for anything other.
The tiles are only for defining the colors.
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 10:57 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Can the 240 x 136 modes be double buffered?

I wonder if there's a way to use the SD card or EEPROM as the second buffer for a 480x272 mode...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/7/2009 11:13 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Double buffering with 2 buffers in RAM is certainly possible. It has a sync indicator to know when to switch the buffers.
I don't know if SD as double buffer will be fast enough...

It's the best I release the code now....
Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/7/2009 11:14 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
OK, here are my Bitmap drivers for the 4.3" LCD.

There are 1 bit per pixel drivers in HiRes- and LowRes versions (480x272 and 240x136 pixels).
The color is definable per 32x32 pixel tile.
HiRes is usefull when you will draw a lot on the screen, but needs 16 kByte memory.
LowRes is mainly for application which has not much RAM free for the screen, LowRes needs only 4.2 kByte.

Then there is also a 2 bit per pixel driver with 240x136 pixels. Every pixel can have 1 of 4 colors. Individual 4 colors
are definable per 48x32 pixel tiles. This gives 5 x 5 tiles, which is a good size for touch buttons. The first line of tiles
is only 10 pixels in height, this can be used for a Titlebar with its own colors.

A demo code is included in the ZIP, which works for all drivers. You just need to change the driver in the OBJ section.
The demo shows the color tiles, and draws pixels and lines. I've tried to make a photo, but my camera is not good
enough, to show details sharp, so perhaps somebody else can make a screenshot.

Andy

Edit: Updated also the comments and description to the right version.

Post Edited (Ariba) : 12/7/2009 6:53:39 PM GMT



File Attachment :
TSD_Bitmap_Drivers.zip   16KB (application/x-zip-compressed)
This file has been downloaded 81 time(s).
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 1:05 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I'll take a photo when I get home, if no one beats me to it...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 5:59 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Here's a couple photos and a little video of it running in high-res, 1-bit mode...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Post Edited (Rayman) : 12/8/2009 1:07:38 AM GMT


Image Attachment :
Image Preview
1bitLinesDots.JPG
  553KB (image/pjpeg)
This image has been viewed 104 time(s).
Image Attachment :
Image Preview
1bitColors.JPG
  483KB (image/pjpeg)
This image has been viewed 93 time(s).

File Attachment :
1BitGraphicsFS.zip   1,014KB (application/x-zip-compressed)
This file has been downloaded 70 time(s).
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 7:19 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Here's a new screenshot and latest (final?) version of the fullscreen 6-bit driver.
It's at 11 Hz refresh, which gives a noticeable flicker to the eye, but looks great on camera!


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm


Image Attachment :
Image Preview
Kids6Bit.JPG
  838KB (image/pjpeg)
This image has been viewed 113 time(s).

File Attachment :
PSB_6bitDemo - Archive [Date 2009.12.07 Time 21.20].zip   33KB (application/x-zip-compressed)
This file has been downloaded 61 time(s).

File Attachment :
kids6.dat   128KB (application/octet-stream)
This file has been downloaded 52 time(s).
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/7/2009 7:26 PM (GMT -7)    Quote This PostAlert An Admin About This Post.

In case anybody is brave enough to try this themselves...  Here's how I prepared the image in Photoshop:

1.  Resize to 480x272

2.  Image-->Mode-->Indexed Color

and then choose the settings as shown in this photo.

Save as .png and then use that with the 6Bit dat generating app, I posted earlier...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm


Image Attachment :
Image Preview
Photoshop_6Bit.png
  119KB (image/x-png)
This image has been viewed 77 time(s).
Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/8/2009 10:03 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Rayman

I tried your 6 bit driver, but my SD card is to slow (a 512MB older card). I get only the half buffer filled for every
16 lines.

I tried to slow down your video driver, but as you say before, the pixel clock seems not to work under 4 MHz.

So I decided to reprogram a 6 bit Fullscreen driver starting from my Bitmap drivers. And it was not very hard.
I have attached the result in the ZIP. It contains only the changed files (demo-code and driver) the other objects
are in your PSB_6bitDemo Archive.

This driver allows to adjust the Pixelclock in 0.3 MHz steps (5/16 MHz). And I also found that it's the best when the
Sync Signal for buffer filling comes after a 1/4 of the buffer is outputed by the driver.
I have the feeling that the flickering is lower, but I can't really say, because I see only the half picture and some
changing lines with your driver.

It's very easy to change the driver to 480x136, and I also have tried a 240x272 version which is not so bad, perhaps
for a movie player with higher frame rate.

I hope this will be usful for you

Andy

File Attachment :
PSB_6bitDemo_480.zip   7KB (application/x-zip-compressed)
This file has been downloaded 59 time(s).
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/9/2009 5:46 AM (GMT -7)    Quote This PostAlert An Admin About This Post.
Great!  More the merrier...
I'm surprised your SD would be slower, mines a very old 256 MB card...  Maybe it's fragged...
Anyway, you could have also used this parameter to slow down the refresh rate in my driver:
_hd                     long     1200'512'512       '1+             read-only  
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/9/2009 4:53 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Ariba: Just tried out your driver! Didn't work so well with my old 256 MB card, but did work with newer, 2GB card...
Measured a frame rate of 11 Hz, exactly like mine...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 712
 
   Posted 12/9/2009 5:42 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
And I tried your driver again :)

I have interpreted the picture the wrong way, my card is to fast and not to slow. I just have seen half overwritten buffers, but
that overwrites come from the new buffer which is filled in before the lcd driver picks the data from the buffer.
When I add a delay of 3ms after syncing and before read sd-card, it works perfect. And I see now that flickering is the same.
The 11 Hz comes from the speed of the SD card, and a lcd driver can't make theme faster.
Perhaps you need to set the sync indicator not at begin of drawing the buffer data, but to a later position, so that it works
for all SD cards.

If I had found this yesterday, I not had written the driver new. OK two big advantages stay: My driver is 200 longs shorter, and I know how I can change it ;)

Now I begin with a text driver, I will see much more text on this LCD. Perhaps 60x34 characters with the 8x8 fonts known
from various TV drivers.
The motto this week for me seems to be: On driver per day....

Andy
Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/9/2009 6:52 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I was thinking about a 6x8 font in order to get 80-column display...


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

kerryw
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined May 2006
Total Posts : 61
 
   Posted 12/10/2009 2:13 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
kerryw said...
Nick McClick said...
I just got the Propeller Platform version of the breakout board in the mail on Saturday, and it's now available on Gadget Gangster. Here's the requisite photo:

Nick, I'd love to buy some of these breakout boards (I just ordered a Propeller Platform board from you). Any idea when these will be available again?
 
Kerry

Still none in stock Nick? Sorry to be impatient :), I'm trying to make something for the wife for Xmas. I want to make an intelligent clock, one that you can easily set different alarm times for different days of the week, add your own .wav wake up sounds etc. Should be a fun project, and I think she'd actually use it.
 
Thanks.
 
Kerry


"Heaven help me Marge, I'm just not that smart." - Homer Simpson

Post Edited (kerryw) : 12/10/2009 9:27:11 PM GMT

Back to Top
 

mctrivia
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2009
Total Posts : 3482
 
   Posted 12/10/2009 6:29 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
That is a good gift idea and I am sure we can figure out a way to get you one in time.

I know James Long has a broken breakout board in stock you could get cheap(give me a reasonable offer and it is yours - i can fix but it will cost me shipping and time to do so.). 1 trace was cut so you would need to be pretty good with this wire and an iron to fix. Or I could express post you a working breakout and screen. Can find out how much that would cost. You would have to pay Ray for the screen though as I am not selling I just have more then I am using at the moment.


24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.

Back to Top
 

Rayman
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2007
Total Posts : 3127
 
   Posted 12/10/2009 7:16 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I'm gearing up to make some more too... First I have to order parts for PSM and PSB boards. (I'm really upset right now that Digikey has run out of some critical components, making me scramble for substitutes or other vendors...)


My Prop Info&Apps:  http://www.rayslogic.com/propeller/propeller.htm

Back to Top
 

kerryw
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined May 2006
Total Posts : 61
 
   Posted 12/10/2009 8:55 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
mctrivia said...
That is a good gift idea and I am sure we can figure out a way to get you one in time.

I know James Long has a broken breakout board in stock you could get cheap(give me a reasonable offer and it is yours - i can fix but it will cost me shipping and time to do so.). 1 trace was cut so you would need to be pretty good with this wire and an iron to fix. Or I could express post you a working breakout and screen. Can find out how much that would cost. You would have to pay Ray for the screen though as I am not selling I just have more then I am using at the moment
 
I can handle the soldering I think. I never saw a price for them so I dont know what to suggest. Just let me know what works for you. I really appreciate it.
 
Kerry


"Heaven help me Marge, I'm just not that smart." - Homer Simpson

Back to Top
 

Cluso99
We live onboard



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2008
Total Posts : 4114
 
   Posted 12/10/2009 9:14 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
I like the idea of a 6x8 character option for 80 chars/line (5x7 with a blank pixel). This is what was originally used in the 70's & 80's. The characters will be blocky, but hey, we lived with that for many years, and the LCD is a much better display than the old monitors.


Links to other interesting threads:
Back to Top
 

Nick McClick
Wanksta



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jun 2008
Total Posts : 728
 
   Posted 12/10/2009 9:35 PM (GMT -7)    Quote This PostAlert An Admin About This Post.
Just sent out notification emails - Touchscreen and Mono LCD's are back in stock. I also have PSM's!


Propeller Forums RSS Feed!

Gadget Gangster - Share your Electronic Projects

Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
648 posts in this thread.
Viewing Page :
 
 
Forum Information
Currently it is Thursday, July 29, 2010 5:18 PM (GMT -7)
There are a total of 462,440 posts in 62,066 threads.
In the last 3 days there were 90 new threads and 803 reply posts. View Active Threads
Who's Online
This forum has 20143 registered members. Please welcome our newest member, ME01.
61 Guest(s), 13 Registered Member(s) are currently online.  Details
John Abshier, Rayman, Kevin Wood, BradC, Julian800, prof_braino, Harley, Sapieha, Gene Bonin, wiresalot, laser-vector, localroger, Nick McClick