1.

Arduino IDE consists of 2 functions. What are they?(a) Build() and loop()(b) Setup() and build()(c) Setup() and loop()(d) Loop() and build() and setup()I have been asked this question in a national level competition.My question is from Arduino topic in section Prototyping Embedded Devices of IOT

Answer»

Right option is (C) Setup() and loop()

The explanation: Setup() is CALLED once in the program when a SKETCH starts after power-up. It is used to initialixe variables, INPUT and output pin modes, and other libraries needed in the sketch.

Loop() is used after setup() been called, function loop() is executed repeatedly in the MAIN program. It controls the board until the board is powered off or is reset.



Discussion

No Comment Found

Related InterviewSolutions