Coding Flashcards

1
Q

what does const int mean?

A

means this variable is a number (integer) that cannot change

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

What does pinMode mean?

A

is a command that means “activate this pin as either INPUT or OUTPUT”

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

What does digitalWrite mean?

A

is a command that means “send current to this pin; either full (HIGH) or none (LOW)”

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

What is a LED?

A

Light Emmitiing Diode

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

What is and Arduino Board?

A

An Arduino board is a programmable circuit board that can be used to power lots of electronic projects.

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

What is IDE?

A

(integrated development environment)

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

What is a Logic Statement?

A

In coding, a logic statement is where the code has to pick between something being TRUE or FALSE. This allows us to make our code and products more complex and allows us to do more things.

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

What is int buttonState?

A

is a variable that can be a number

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

What is digitalRead ?

A

digitalRead is a command that means “scan this pin and tell us whether current is HIGH or LOW”

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

What is int i ?

A

int i is a variable that we create as an ITERATOR

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

What is an iterator?

A

an object used to cycle through arguments or elements present in a collection.

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

What is analogWrite ?

A

is a command that means “send a specific amount of current (in this case, i) to a pin”

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

What is a while statement?

A

this allows us to repeat through a series of things until a condition is false.

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

What is a Motor Driver?

A

The Arduino board does not generate enough power to turn on and operate small DC (direct current) motors. That’s why we use an amplifier in between the Arduino and motor to increase the power so our motors can spin.

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

What does iterate mean?

A

perform or utter repeatedly.

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

What does delay mean?

A

wait

17
Q

What is Void loop?

A

repeates all code

18
Q

What is void setup?

A

The void setup() is the first function to be executed in the sketch and it is executed only once

19
Q

What does serial.write mean?

A

put this message on the output screen or the serial port

20
Q

what does it mean when the button is low?

A

The button is pressed

21
Q

what does anolog mean?

A

An analog signal can take on any number of values

22
Q

what does serial begin mean?

A

Serial. begin() establishes serial communication between your Arduino board and another device.

23
Q

What is the simplest logic statement called?

A

if /else statement

24
Q

What is the thrid type of logic statement?

A

While

25
Q

What is the second type of logic statement?

A

Another type of logic statement is the FOR statement. This allows us to iterate through a series of things.

26
Q

What do voidsetups void loops and logic statements msut have at the bginning and end?

A

squiggly brackets

27
Q

What is the order when coding?

A

Variable Decleration
Void setup
Voidloop

28
Q

What is the short side of a LED

A

negative

29
Q

What is the long side of an LED

A

positive

30
Q

What is another word for the microcontroller?

A

the brains

31
Q

Another word for code

A

sketch

32
Q

what is the language called?

A

c++

33
Q

what is variable deceleration?

A

when you specify a type and an identifier but have not yet assigned a value to the variable. or Variable Definition. A variable definition is when you assign a value to a variable, typically with the assignment operator =.Jan 31, 2024