1.8" TFT shield with joystick and SD card on chipKIT

Post Reply
User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by majenko » Fri Sep 13, 2013 8:53 am

That's not OOP, that's MPIDE. I only really use MPIDE when programming MPIDE these days. I usually use UECIDE which is based on MPIDE but much better ;) It contains all the things I wanted to put in MPIDE but would have changed it beyond all recognition ;)
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

hdphilip
Posts: 39
Joined: Sat Apr 14, 2012 7:54 am

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by hdphilip » Sat Sep 14, 2013 9:58 pm

Hi,
This works Great!!!

Thanks for all of the hard work.

Philip
P1000902.JPG
P1000902.JPG (158.81 KiB) Viewed 1359 times

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by majenko » Sat Sep 14, 2013 10:06 pm

I'm still waiting for my 2.2" TFTs to arrive. Once they do I'll be adding support for them both, plus working on a PMP driver for ultra-high speed display updates.

But for now, here is the LEDMatrix driver from the experimental library...
matrix.jpg
matrix.jpg (67.94 KiB) Viewed 1355 times
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
unexpectedly
Posts: 105
Joined: Fri Aug 23, 2013 2:31 am
Location: San Diego
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by unexpectedly » Sun Sep 15, 2013 8:17 am

hdphilip wrote:Hi,
This works Great!!!
Thanks for all of the hard work.
Philip
That's awesome!

Did you try out the TFT experimental library, too? You'll need to have either GFX+ST7735 OR TFT in mpide/Libraries -- not both at the same time.

:D Chris

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by majenko » Sun Sep 15, 2013 10:48 pm

I now have my 8x32 LED matrix strapped vertically to the side of my monitor, and it's showing 8 nice bar graphs of the read and write activity of the four hard drives in my computer. FLR TO THE MAX!!!
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

hdphilip
Posts: 39
Joined: Sat Apr 14, 2012 7:54 am

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by hdphilip » Mon Sep 16, 2013 1:40 am

unexpectedly wrote:
hdphilip wrote:Hi,
This works Great!!!
Thanks for all of the hard work.
Philip
That's awesome!

Did you try out the TFT experimental library, too? You'll need to have either GFX+ST7735 OR TFT in mpide/Libraries -- not both at the same time.

:D Chris
No Chris, I haven't tried them yet, all four of the other demos work fine, kittens, space invaders, and the 2 menu programs. I haven't hook a pot up to run the menu or play the game either (i'll put a random number to similate me at the controls). I've tried 2 different 1.8 TFT screens from Ebay, the one with the 4 holes on the PCB and the other side edge connector.

I think what amazed me the most was the speed of the writing to the screen, awesome.

I've been usuing the Nokia LCD 5110 for my projects, thought about looking into spi direct writes for it, but it's a little out of my league to rewrite it.

right now my main project is a metal detector shield for the chipkit, hummm, maybe a color screen would be a nice upgrade..........

Philip

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by majenko » Mon Sep 16, 2013 4:18 pm

You thought the 1.8" screen was good - you should see the 2.2" screen!

I have just added support for it into the Experimental system - it's the ILI9340.

Not only is it that little bit bigger, but it's higher resolution too! They have 320x240 packed into this bad boy!!!
22inchtft.jpg
22inchtft.jpg (87.76 KiB) Viewed 1334 times
It's so shiny, trying to get a photo of it without including myself was a bit tricky...
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

hdphilip
Posts: 39
Joined: Sat Apr 14, 2012 7:54 am

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by hdphilip » Tue Sep 17, 2013 4:10 am

you sold me on it,

http://www.ebay.com/itm/200952295233#ht_3957wt_1004

that would be a go start for a home made peice of test equiptment

Philip

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by majenko » Tue Sep 17, 2013 9:50 am

Nice one.

I see that has the "C" version of the chip. My Adafruit one has the "B" version - I don't know what differences, if any, there are. If it doesn't work straight off we may have to look into the data sheets and do some tweaking.

I have other 2.2" displays on order too, both low res and 320x240. These have the full parallel interface available though, so they will be able to do ultra-fast display updates (the 320x240 SPI interface is a bit sluggish - only a few frames per second).

I'll be writing a Parallel Master Port driver to run those with the ultimate in speed. 16 bits, hardware managed IO. Not sure how that would map to a chipKIT board's IO ports though, I'll have to go through all the required pins and find where they map to.

Also, a framebuffer for these high res ones uses a lot of memory. Even restricted to 256 colours like the Framebuffer pseudo-device is they use 76800 bytes of RAM, so you've no chance of doing the fancy stuff (sprites, fast refresh, etc) on anything less than a '695 or '795 chip.

I guess, once I have written the PMP driver, I could investigate attaching an off-chip block of SRAM as framebuffer backing store... That would be quite nice, though not quite as fast as the internal RAM. It might mean the ability to have a 16-bit framebuffer though. SPI SRAM could also be possible, but that would be even slower.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: 1.8" TFT shield with joystick and SD card on chipKIT

Post by majenko » Tue Sep 17, 2013 11:27 am

Pi$$ed off at not having a proper dev board (arduino layout) with a decent chip on it, i have just created myself a "Fubarduino". Through the magic of one of my protoshields, I have created an adapter for the Fubarino to give it a rudimentary Arduino Uno pinout. Lets me plug my nice TFT shields into the Fubarino instead of having to run wires around the place.
fubarduino.jpg
fubarduino.jpg (128.83 KiB) Viewed 1322 times
I'm not 100% happy with the layout at the moment, I may change a few pins around (so the LED and button are completely separate from the Arduino footprint, and I have no UART at the moment), but Kitteh works on it, and that's the important thing ;)
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply