联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2022-03-06 12:00

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.

Figure2: Serial monitor window for Lab2-HelloWorld.ino from my computer

Page 3


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp