I uploaded my code onto the arduino before leaving for the weekend and when I came back the computers had been restarted so I lost all my code. However, the code still runs on the arduino so is there any way I could get the code?
Thanks
I uploaded my code onto the arduino before leaving for the weekend and when I came back the computers had been restarted so I lost all my code. However, the code still runs on the arduino so is there any way I could get the code?
Thanks
You can get the compiled code, yes, but not the source.
Verifying an unsaved sketch, I find a lot of the code in C:\Users\myname\AppData\Local\Temp\arduino_build_934683\preproc\ctags_target_for_gcc_minus_e.cpp
After a correct closing of Arduino IDE, it removes the temprary files. I assume a forced shutdown will leave them there.
Who goes away for the weekend thinking they can just leave a screen open and it will still just be there?
johnspam does
The Arduino IDE always saves the C/C++ source code before compiling and uploading, so it is somewhere. Look in the default Arduino directory (the "sketchbook location" in Preferences) for folders with a date name or other suggestive name.
johnspam:
I uploaded my code onto the arduino before leaving for the weekend and when I came back the computers had been restarted so I lost all my code. However, the code still runs on the arduino so is there any way I could get the code?Thanks
It must still be in your grey matter.
.
Thanks for the help but I ended up finding it. Accidentally saved it in the wrong folder.