Hi,
Please advise if Aurdino Mega code can be run on Arduino Nano.
Originally on the Mega , the Digital IO pins 4-13 are used
Pins 8-13 are connected to Dispaly (128x64 Display)
Pins 5-7 are used to navigate (Push buttons of Display)
None other pins are used on Mega 2560.
Please advise if the same can be used on Arduino Nano, since Nano also has Digital IO pins of 1-13.
The hardware sounds compatible but the code might not be
Please post the sketch here, using code tags when you do
In my experience this is the easiest way to tidy up the code and add the code tags
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
Hi,
Thank you for the answer.
You are right , memory is the limitation; below is the error output when compling
##############
Sketch uses 40550 bytes (131%) of program storage space. Maximum is 30720 bytes.
Global variables use 2044 bytes (99%) of dynamic memory, leaving 4 bytes for local variables. Maximum is 2048 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
text section exceeds available space in board
Compilation error: text section exceeds available space in board
#######