I have some projects that I haven't touched in months. Long story short, I forgot to save the projects when I reformatted my computer, but the Arduinos are programmed with working examples for their respective projects. Is there a way I can pull the code off of the arduino and edit it again? If that's not possible, can I at least pull the working examples and archive it so I can put the examples back on to the Arduino if I compleltely mess up?
I don't have wiring diagrams of my projects and I'm afraid I won't be able to recreate my working examples if I drop a new program on the Arduino.
Could I (maybe with help ) set up a command line that would load the same sketch into any Arduino that I connected to a USB cable??
So long as the boards are similar, it should work very well. I think the only issue is processor model (e.g. they all have to be 328s) and clocking (e.g. they all have to use 16 MHz crystals).
The IDE will actually tell you what the command-line is: just hold the shift key when you click upload. If you preserve the HEX file, you can use it over and over.