I do not have the time to go through your code in detail, but my initial impression was that the Mega code was very long for the tasks. I might think differently if I waded through it all.
You last function "software_Reset()" is defined but a search did not find any instances of it being called.
The posted Nano code looks to be missing a chunk. As posted it does nothing.
You attach an interrupt "attachInterrupt(0, runEncoder1, RISING );" but there is no "runEncoder1()".

LinkBack URL
About LinkBacks

Reply With Quote

Bookmarks