Go Down

Topic: Arduno Mega not working (Read 223 times) previous topic - next topic

SHAPATH

I am relatively new in arduno mega 2560..usint utft touch shield ..
I upload my code with no problem..it show

"Sketch uses 66,176 bytes (32%) of program storage space. Maximum is 253,952 bytes.
Global variables use 552 bytes (6%) of dynamic memory, leaving 7,640 bytes for local variables. Maximum is 8,192 bytes."

but after uploading code sucessfully arduno do nothing..

Please someone help me..

ieee488

but after uploading code sucessfully arduno do nothing..

Please someone help me..
:)
I'm sure it is doing something.
Just not what you want it to do.

spycatcher2k

Upload 'Blink' - if it works, then ot's your code, or your wiring, but you are too god damn lazy to provide them, so I'll be lazy and not help.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

SHAPATH

Thanks for reply.. I live in native place where internet connection not so good..
sorry for late.. 

SHAPATH

I used PROGRAM array for image..it woeks fine when  ketch uses 30% of program storage space..
when 32% it hangs

SHAPATH

here is my code


#include <avr/pgmspace.h>

TechShopBDScreen myGLCD(ILI9325D_16, 38, 39, 40, 41);


extern unsigned short pic1[0x2EE0];
extern unsigned short pic2l[0x2EE0];


void setup()
{
 myGLCD.InitLCD();

 myGLCD.drawBitmap (10, 10, 120, 100, pic1);
 myGLCD.drawBitmap (140, 10, 120, 100, pic2);
}

spycatcher2k

You have bigger issues, you posted the INCOMPLETE code, INCORRECTLY. Fix this and I might look at it.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

DrAzzy

There are issues with putting large amounts of data in PROGMEM on the '2560 due to the near/far thing; I think you can only fill 25% of the program space with PROGMEM before it can't be accessed via the normal method (read_byte_near() - read_byte_far() is needed), and IIRC almost nothing is smart enough to handle that correctly.
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up