Today i had my 10th, or 12th hour of Arduino in University, we were assigned a paper with only 2 parts, the questions and a picture of a TinkerCAD circuit, we had to wire this circuit, then wrote a code to light up the LED TinkerCAD Circuit
i know void setup(){}
runs only once, and that void loop(){}
loops forever, i wrote the following code to light up the led
void setup(){
pinMode(7,OUTPUT);
digitalWrite(7,HIGH);
}
but Arduino expected a void loop()
at the end, even if its empty, why is that?, why cant it run without it since an empty loop is essentially the same as no loop?, what is the reason the compiler cant ignore the lack of a void loop?