 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > New 4.3" touchscreen LCD for Propeller: "used" screens for $18 | Forum Quick Jump
|
|  tdeyle Registered Member
        Date Joined Apr 2007 Total Posts : 64 | Posted 12/6/2009 2:21 PM (GMT -7) |   | 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 | | |
     |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/7/2009 9:21 AM (GMT -7) |   | | | |
 |  Ariba Registered Member

       Date Joined Apr 2007 Total Posts : 712 | Posted 12/7/2009 10:44 AM (GMT -7) |   | 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
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/7/2009 10:57 AM (GMT -7) |   | | | |
 |  Ariba Registered Member

       Date Joined Apr 2007 Total Posts : 712 | Posted 12/7/2009 11:13 AM (GMT -7) |   | 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

       Date Joined Apr 2007 Total Posts : 712 | Posted 12/7/2009 11:14 AM (GMT -7) |   | 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
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/7/2009 1:05 PM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/7/2009 5:59 PM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/7/2009 7:19 PM (GMT -7) |   | | Here's a new screenshot and latest (final?) version of the fullscreen 6-bit driver.
| | Back to Top | | |
    |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/9/2009 4:53 PM (GMT -7) |   | | | |
 |  Ariba Registered Member

       Date Joined Apr 2007 Total Posts : 712 | Posted 12/9/2009 5:42 PM (GMT -7) |   | 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
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/9/2009 6:52 PM (GMT -7) |   | | | |
 |  kerryw Registered Member
        Date Joined May 2006 Total Posts : 61 | Posted 12/10/2009 2:13 PM (GMT -7) |   |
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?
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 | | |
     |  Nick McClick Wanksta

       Date Joined Jun 2008 Total Posts : 728 | Posted 12/10/2009 9:35 PM (GMT -7) |   | | | |
 | 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 |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2010 |
|
|