I really need to be able to read the code that I loaded into my Arduino.
Unfortunately, I had about a dozen different versions of the code all in different folders downloaded as I was trying to get my project working.
I was just learning and had no idea what an Arduino was and that you needed a piece of software that was also called Arduino to load code into your Arduino to make it work.
I finally realized every time I was clicking a certain link on GitHub it was downloading the code again into another folder.
I have a backup of all of that but it is a literal mess and I have no idea which version I finally got working. Well, now something isn't working. It would be helpful to know what's loaded in the Arduino but I don't suppose there's a way to make the Arduino software download instead of upload if this is even possible.
Sadly it's impossible to "download" code from an arduino.
In the future I suggest that you put a serial print in the Setup that tells you what version it is using.
the "code" you loaded into the arduino isnt the same as your sketch. So it wouldnt help much to be able to examine it.
V205 Lovelace is rightI put a header on my sketches - like this - with the name version and version history.. This is for my webdisplay sketch
/*
Webdisplay V2.05 - now using ESP32.
Ping working well giving sensible values (20ms for talktalk) with possible long delays
doing 2 pings at a time with a threshold of 3 attempts to record an outage
2.04 changes: bool buttonState, lastButtonState, switchState, lastSwitchState; changed from type int
2.05 May 2023 following a fail of the test server change to ping Quad9 as a more reliable DNS server
*/
but a serial print that tells you what the actual arduino is running is a great idea to link to that - I'll use it in future
As I said in post#4, but the OP didn't acknowledge. That of course only works if development stopped with the working version loaded, if it continued then it becomes difficult to find the right version(and if the same name was used throughout, pointless).
Thanks for your answer regarding the file date and timestamps.
I'm going to check those again to see if they make sense.
Like I said in the original question, there are a dozen unzipped versions because I didn't realize at the time every time I clicked on the folder in GitHub it unzipped it again.
I did stop when I finally got it working but there are still 3 or 4 different versions that I was working with until I got everything working successfully.
What would really be ideal in this situation would be if there was a "virtual" environment where I could select all the hardware and then compile the sketch and upload it and see if it works.
I've looked at Arduino Cloud but I'm not sure if that will do this.