首页 > > 详细

辅导data设计程序、辅导Python,Java编程

Engineering Design &
Innovation
Computing Technical Stream
Lab 2 - Week 3
Exercise 1 - Hello World
This report was prepared by Michael Schofield z1234567 for DESN1000 – Computing Technical
Stream. This submission is my own work and to the best of my knowledge it contains no materials
previously published or written by another person.
Collaboration
This lab exercise was done in collaboration with my team member Mary Smith.
Exercise
A. Write a program that prints "Hello World" on a new line of the Serial Monitor, every one second.
Code
// =======================================================
// ENGG1000 - Computing Technical Stream
// Exercise 1
// Written by Mary Smith and Michael Schofield August 2016
// Adapted from course notes
// =======================================================
void setup(){
// Initialize the serial communications
Serial.begin(9600);
}
void loop(){
// Say hello to the world
Serial.println("Hello World");
// Wait one second and do it again
delay(1000);
}
File: Lab2-HelloWorld.ino designed and written in collaboration with Mary
Smith and copied with permission
Computing Technical Steam – Lab Report
Compile and Upload
The program compiled without any errors or warnings and uploaded to the Arduino UNO R3 board
successfully.
Figure1: Upload window for Lab2-HelloWorld.ino from my computer
Page 2
Computing Technical Steam – Lab Report
Results
The program ran on the Arduino UNO R3 without any errors and produced the required result.

联系我们 - QQ: 99515681 微信:codinghelp
© 2021 www.7daixie.com
程序辅导网!