Trouble with barcode opening bitmap from sd card

Hi there

really new to this arduino stuff. i have a few bugs in my code. i have got the barcode scanning and displaying the number as filename. but i now cant get the filename to open the relevant image with the same name. anyone got any ideas? or can complete this code for me? id happily pay someone as this is doing my head in!

code attached.

combined_total_-_bugs.ino (13.3 KB)

Installation & Troubleshooting
For problems with Arduino itself, NOT your project

Hi there

really new to this arduino stuff. i have a few bugs in my code. i have got the barcode scanning and displaying the number as filename. but i now cant get the filename to open the relevant image with the same name. anyone got any ideas? or can complete this code for me? id happily pay someone as this is doing my head in!

code attached.

combined_total_-_bugs.ino (13.3 KB)

  if(fileName = 92016401){

You are writing code to read from a barcode scanner, and show images on a TFT, but you still don;t know the difference between = and ==? Hard to believe.

It's equally hard to believe that the String object is going to equal that integral value.

It's hard
to believe,
too, that you can't
indent
your code
any better
than
that.

I don't have your libraries, your hardware or a clear idea of how your code meets expectations (hint), but I'm going to stick my neck out and say that with a graphical display and SD card, you've likely got a shortage of RAM.

A first stab at getting things fixed would include a scattering of F() macros.

if you cant fix my problem then please leave. can you help me with my error codes to start?

can you help me with my error codes to start?

Did you bother posting any error codes?

cant you just open the code in arduino, fix it and send it back?

Can't you stop CROSS-POSTING?

really new to this arduino stuff

And yet in the year you've been registered, you've never noticed how much we dislike cross-posting, because cross-posting WASTES TIME?

Thread locked.

The loop function is missing three closing braces '}'. As PaulS pointed out in one of your crossposted threads, there are other problems too. But if you put those three braces where they belong, you can then start tackling the other errors.

Pete