Microprocessor (Mod 4) Flashcards

1
Q

What is being done with this code
digitalWrite(13, HIGH);

A

LED (13) is turned ON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is being done with this code
digitalWrite(13, LOW);

A

LED (13) is turned OFF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

delay(500)

A

wait for 500 milliseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It is being passed to a function when it is called

A

Arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The parameters for a function must be enclosed in ___ and separated by ___

A
  • parentheses
  • commas
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This takes the code you have written and translates it into machine code—the binary language that the Arduino understands.

A

compilation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

you have to have some “___” code, as it is called, before you can add your own code into a sketch.

A

boilerplate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Arduino programming the “boilerplate” code takes the form of the “___” and “___” functions that must always be present in a sketch.

A
  • setup
  • loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Maximum file size according to the IDE

A

32,256 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The line ___ means that you are defining a function called ___

A
  • void setup()
  • setup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

___ and ___ are two functions that you must define for yourself in every sketch that you write

A
  • setup
  • loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

is used as a function return type, it indicates that the function does not return a value

A

void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly