Friday, October 23, 2026

Exploring Hello World! - Once Learning Activity || TinkerCAD Circuits Simulator - 02

 

 


 

Hello World! Once TinkerCAD Circuits Simulation Link

 <Code>

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println(
"Hello World!");
}
void loop() {
// put your main code here, to run repeatedly:
}

 



Here two code lines are added to setup() function, first one sets communication speed between Arduino Uno board and Host computer [baud rate:9600]; second line prints ‘Hello World!’ text on a new line.

To see the text line once again, you have to reset the Arduino Uno board [press the Stop & then Start Simulation]. So it is evident that the setup() function is used to set up the board or system and runs only once on every reset.



…till the next post, bye-bye & take care!

No comments:

Post a Comment