C:\Users\203310\AppData\Local\Temp\ccakTOvO.ltrans0.ltrans.o: In function main': C:\Users\203310\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/main.cpp:46: undefined reference to
loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
I keep getting this error message when trying to upload to a (genuine) Uno.
Here is my code:
`#include <Servo.h>`
`Servo myservo; // create servo object to control a servo`
`void setup() {`
`myservo.attach(9); // attaches the servo on pin 9 to the servo object`
`delay(100);`
`myservo.write(0); // sets the servo position`
`delay(100); // waits for the servo to get there`
`myservo.write(90); // sets the servo position`
`delay(5000); // waits for the servo to get there`
`myservo.write(0); // sets the servo position`
I hope I formatted the code correctly.
Thanks.