 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > New 4.3" touchscreen LCD for Propeller: "used" screens for $18 | Forum Quick Jump
|
   |  mctrivia Registered Member

       Date Joined Jan 2009 Total Posts : 3482 | Posted 12/12/2009 12:22 AM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/12/2009 5:43 AM (GMT -7) |   | | | |
 |  Eagleman Registered Member
        Date Joined Nov 2009 Total Posts : 22 | Posted 12/13/2009 12:14 AM (GMT -7) |   | |
Having trouble getting Raymans LCD to work on my PE Education board. Using Ariba's driver to test, I have the following pins hooked up as follows:
P0 B0 (basepin defined as "0")
P1 B1
P2 G0
P3 G1
P4 R0
P5 R1
P6 DE
P7 PCLK
P8 BL
P9 DON
P29 SDA
P28 SCL
PLUS all grounds hooked up
Vdd to +3.3v
VBL to +3.3v
I've got a 20 pin header soldered to Ray's breakout board and that is plugged into an empty area on the PE breadboard with jumpers connecting the 20 pin header rows to the Prop and power.
The assignment for the above pins (and basepin = 0) were made in the DAT section of TSD_Demo.spin.
I get no light or signs of life on the LCD.
I keep seeing referrals to the "Parallax VGA Driver", but can't seem to find any info on it.
I am used to working with PICs and PBP but I am new to spin and the Propeller so I get lost easily.
Any suggestions from the experienced people who had no trouble getting the LCD to work?
Post Edited (Eagleman) : 12/13/2009 7:30:29 AM GMT | | Back to Top | | |
    |  Eagleman Registered Member
        Date Joined Nov 2009 Total Posts : 22 | Posted 12/13/2009 7:15 AM (GMT -7) |   | Ariba,
Thanks for your help! I finally have a screen working. Also, with your help I now have a better understanding how the video and spin work. I've got VBL connected to +3.3v; should that be connected to +5v?
Here's my new connection chart (for anyone else that might need this info): p0 Vsync (basepin) p1 Hsync p2 B0 p3 B1 p4 G0 p5 G1 p6 R0 p7 R1 p8 DEN p9 DE p10 PCLK p11 BL p27 IRQ p28 SCL p29 SDA VBL +3.3v
Where can I find additional information on the basic "Parallax VGA Driver"? I searched the forum archives, but found nothing.
Thanks again for your help. GREATLY appreciated!! Eagleman | | Back to Top | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/13/2009 12:26 PM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/13/2009 12:27 PM (GMT -7) |   | | | |
 |  kerryw Registered Member
        Date Joined May 2006 Total Posts : 61 | Posted 12/13/2009 12:54 PM (GMT -7) |   |
Ariba said... 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. Thanks so much for the drivers Ariba. Did you happen to create a graphics.spin object that support these?
Kerry
"Heaven help me Marge, I'm just not that smart." - Homer Simpson | | Back to Top | | |
  |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/13/2009 2:47 PM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/13/2009 4:39 PM (GMT -7) |   | | | |
  |  Ariba Registered Member

       Date Joined Apr 2007 Total Posts : 712 | Posted 12/14/2009 2:05 AM (GMT -7) |   | kerryw said...Ariba said...
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. Thanks so much for the drivers Ariba. Did you happen to create a graphics.spin object that support these? Kerry
Kerry
Here is the graphics object that tdeyle posted a few pages before, adapted to my Bitmap drivers. This is not as good as Chip's graphics.spin, but you can draw graphic and text (picked from the ROM font).
The included Demo is for the HiRes version, if you change the bitmap object, and all the coordinates, then this should work also with the LowRes driver.
It seems to have some issues if the Y coordinate is higher then the screen.
I will also adapt my own Graphics object later, but not found the time so far.
Andy
File Attachment : TFT_graphics_DEMO.zip 28KB (application/x-zip-compressed)This file has been downloaded 78 time(s). | | Back to Top | | |
  |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/16/2009 5:39 PM (GMT -7) |   | | | |
     |  M.E.S.H Registered Member
        Date Joined Dec 2009 Total Posts : 13 | Posted 12/17/2009 9:00 AM (GMT -7) |   | I was just wondering what kind of case that would fit the lcd !
Would be nice to get a metal front-plate to this lcd (witch actually keeps the lcd in place behind it as well). As thin as possible (of course not in the nano level of thin just because it's possible ), so that the lcd's edges are click-friendly (with a finger-tip), even in the corners. Also some fixing points in that plate so that different back-ends could be used (45 degree uptilted table/kiosk mini stand, Ariba - the Pocket/PDA Prop, a Wall-mounted etc.)..
Nice to see the photos w installations (and even more graphics drivers 
/M.E.S.H | | Back to Top | | |
 | 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. 59 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 |
|
|