Touch Shield V2 BMP Example

Ardiuno Compatible shields

Moderators: lily.li, violet

Post Reply
marcinkokm
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Wed Mar 11, 2015 11:23 pm

Touch Shield V2 BMP Example

Post by marcinkokm » Wed Mar 11, 2015 11:26 pm

I am working through the Touch Shield examples and for the life of me, I can't get the bitmap example to show anything except a black screen. I have tried reformatting the card, creating new bitmap files, and nothing changes. What should I be looking to do next?

akajefm
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Sat Jan 02, 2016 9:36 am

Re: Touch Shield V2 BMP Example

Post by akajefm » Sat Jan 02, 2016 9:55 am

Mine did not work either:
On serial monitor during startup, it says

Code: Select all

SD OK!
MB_UNGER.BMP
FISH-PCB.BMP
FISH-P~1.BMP
get 3 file: 
MB_UNGER.BMP
FISH-PCB.BMP
FISH-P~1.BMP
size 0x4B08A
offset 138
header size 124
bad bmp
size 0x4B08A
offset 138
header size 124
bad bmp
size 0x4B08A
offset 138
header size 124
bad bmp
It says all that a few times and then loops with:

didnt find image

I tried making a couple different bmp's with gimp. Thanks for any help.

kavi
Staff
Staff
Posts: 305
Joined: Tue Dec 09, 2014 12:06 pm

Re: Touch Shield V2 BMP Example

Post by kavi » Mon Jan 04, 2016 7:43 pm

Hi,

May I know what is the size of the image you uploaded?

Thanks and Regards

akajefm
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Sat Jan 02, 2016 9:36 am

Re: Touch Shield V2 BMP Example

Post by akajefm » Thu Jan 07, 2016 1:41 am

Hi Kavi and thanks for writing.

I am using 320x240 BMP's. I gather they are supposed to be '24 bit' but cannot find anything in GIMP to export it that way.

Here are links to the images I've made/tried.
https://www.dropbox.com/s/56xob3qkzaeqs ... b.bmp?dl=0
https://www.dropbox.com/s/f1d0sbrg8102b ... d.bmp?dl=0
https://www.dropbox.com/s/hjgz8wuzra8i3 ... r.bmp?dl=0

If anyone can share a 'known good' image, I'd be happy to try it. (SFW please!)

kavi
Staff
Staff
Posts: 305
Joined: Tue Dec 09, 2014 12:06 pm

Re: Touch Shield V2 BMP Example

Post by kavi » Fri Jan 08, 2016 7:52 pm

Hi,

Can you please run the example program "tftbmp".
The images for the example are available in the following link copy them in the SD card and program it.
Let us know if it works.

Thanks and Regards

akajefm
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Sat Jan 02, 2016 9:36 am

Re: Touch Shield V2 BMP Example

Post by akajefm » Mon Jan 11, 2016 9:49 pm

Got it working thanks.
I had the pics oriented wrong.

jafo_dan
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sun Mar 20, 2016 2:39 pm

Re: Touch Shield V2 BMP Example

Post by jafo_dan » Sun Mar 20, 2016 2:43 pm

I'm so new at this that I have no idea what I'm doing. Anyone out there that can help me? I get errors on just about everything I do on the arduino. I have the correct port, I have the Uno picked and still don't get anything to work other than the stock stuff.

Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Uno"

Build options changed, rebuilding all
C:\Users\DANIEL~1\AppData\Local\Temp\arduino_modified_sketch_593538\sketch_mar20a.ino:15:19: fatal error: TFTv2.h: No such file or directory

#include "TFTv2.h"

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

viswa
Staff
Staff
Posts: 168
Joined: Tue Jan 25, 2011 11:16 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Seeeduino Film,Motion Frame,UartSbee

Re: Touch Shield V2 BMP Example

Post by viswa » Thu Mar 24, 2016 5:56 pm

Hello,

It looks like your Arduino IDE and TFT library is not properly installed. Could you please make a fresh installation of Arduino IDE. Then, install the TFT library properly.

Thanks and Warm Regards.

Post Reply