I have recreated an Arduino circuit I had to make for class, just to see how tinkercad works.
I then copied the code I used for my project (this code works and compiles just fine in Arduino IDE on my PC) and pasted it into the code section.
However when I go to run simulation it pics up an error claiming a statement in my function is undeclared and refuses to run. However this code works just fine in the real world.
Any ideas what is wrong?