2.8" TFT Touch Screen
cavelamb
Posts: 720
Radio Shack has these touch screen displays on the rack for $15.
I grabbed one - just because it's too cool and looks like ought to
go well with An ASC board.
Is there any code for it yet?
I grabbed one - just because it's too cool and looks like ought to
go well with An ASC board.
Is there any code for it yet?
Comments
tsk tsk, you should know better. All we know is that you have "a touch screen display for $15" and from the subject line we also know it's 2.8". Try again.
We could port the arduino code pretty easily.
Let's change that to maybe.
Probably this critter...
http://www.seeedstudio.com/wiki/2.8''_TFT_Touch_Shield_V1.0
Version 1 - parallel Data?
Seems like the same link. Great minds link alike. LOL.
The V2.0 version uses the IL9341 instead of the SF7781R, but if there is arduino code for either porting it for the ASC would not be so hard. Time is my only bottleneck.
I'm not turning up much information on SF7781R controller.
IS that the correct part name?
Sorry, it's ST7781R (not SF7781R). My fingers are fat today. LOL
The controller part number and other information is in the link mentioned above.
The ST7781R spec is here. Propeller ASC has an MCP3208 ADC chip on board.
Yep. That's why I was thinking that this wedded to an ASC board would be a pretty hot set-up.
The ASC has an MPC3008 A2D converter on board.
AND a =5 volt supply.
But now I wonder about the signal level differences. How to slip some resistors between the boards?
@Jazzed:
Thank you very much for the link.
I can understand the fat finger problem. My brain gets that way some times.
As for the data sheet...
Wow. Pick and interface!
SPI would save a squillion pins, but could it be fast enough to paint a whole screen quickly?
Last complication (that I can see at the moment) is memory.
Maybe having to adapt the Arduino drivers would be a blessing after all.
It would force a C development system, and that would make it possible to add external RAM.
But my imaginary pretty little two board stack doesn't look like it's going to happen.
Pity.
You gonna share your mods?
Or keep it all to yourself???
TOO true to be that funny!
Thanks,
David
I've spent some time this morning making a demo for the subject TFT (the SeeedStudio 2.8" V1.0 model).
The demo only writes to the screen at the moment, and it uses LMM mode (CMM mode is excruciatingly slow). A PASM driver should be created to speed things up (result would be 6 or more times better performance over LMM).
The attached .zip file should allow you to repeat the same results I get with the Propeller ASC(+) board.
Here are some useful links.
Seeeduino Schematic.
SeeedStudio 2.8" TFT LCD module V1.0 page.
SeeedStudio TFT code examples (the video demo code comes from here).
SeeedStudio TouchScreen driver (not ported yet).
[video=youtube_share;edodNm8n1IY]
That most likely requires a different driver.
Maybe someone who has the display will port the code. The 2.8" example I posted needed very few changes; just look for PROPELLER in the source.
A belated thank you for the demo.
I've been reading through it trying to figure it out.
I've written some C code before.
But I never claimed to be literate in it.
It's cool that the Arduino stuff can be used almost directly.
But its still Arduino code.
Not really Propeller code.
Do you think this can be done in Spin?
Or PASM?
But hey. the thank you is sincere.
Even if I whine some...
(XS02 2.2" Serial SPI TFT Color LCD Module for (For Arduino)) it also uses ILI9341_Driver like the ver 2.0.
http://wenku.baidu.com/link?url=LZ75wYgWfBFMJcHdphbPERLdvRwUUDxv_EuU75RHvGMCDqkaUq2qoRVCgu9HLsD0ztvMOrT0Av_2Ow60j16YKsQM72Ma_slrteY_U4L6y8e
Im thinking if someone could port the code it would work with this too.
Both the are C++. And, it really is Propeller code. If it wasn't it wouldn't work ;-)
I've considered speeding it up by making TFT::SendCommand and TFT::SendData use inline ASM.
Of course, but someone with time and desire will have to do that.
But you did accomplish what was needed here - to show that an Arduino shield
can be plugged into an ASC board and made to work pretty much with the existing Arduino software.
That's just way cool.