Arduino - ANSWER An open-source electronics prototyping platform
void setup(){ } - ANSWER When you establish boundaries for your
code. Everything is put in between the brackets. Tokens such as:
define#, pinMode, serial. Begin, const, etc.
void loop(){ } - ANSWER When you tell your Arduino what it's supposed
to do. (When done, it will repeat) Tokens such as int, digitalWrite,
analogWrite, if, etc.
int x = y - ANSWER When you define x as y. Y can be a number,
another sensor value, or a reading (digitalRead or analogRead). Used in
void loop
pinMode(x,y) - ANSWER When you define a pin as input or output. X is
the pin number and Y is input/output. Used in void setup
digitalWrite(x,y) - ANSWER When you tell a previously determined
output pin to turn HIGH or LOW. Used in void loop
digitalRead(x) - ANSWER When you tell a previously determined input
pin to read its HIGH or LOW signal. Used in void loop
analogWrite(x,y) - ANSWER You tell a previously determined output
pin to send out a ranged signal. Used in void loop
analogRead(x) - ANSWER You tell a previously determined input pin to
read a ranged signal. Used in void loop
Serial.Begin(x) - ANSWER Set the reading speed to x times per
second. Used in void setup
Serial.println(x) - ANSWER Print x to the serial monitor. Used in void
loop
delay(x) - ANSWER Wait x milliseconds. Used in void loop
void setup(){ } - ANSWER When you establish boundaries for your
code. Everything is put in between the brackets. Tokens such as:
define#, pinMode, serial. Begin, const, etc.
void loop(){ } - ANSWER When you tell your Arduino what it's supposed
to do. (When done, it will repeat) Tokens such as int, digitalWrite,
analogWrite, if, etc.
int x = y - ANSWER When you define x as y. Y can be a number,
another sensor value, or a reading (digitalRead or analogRead). Used in
void loop
pinMode(x,y) - ANSWER When you define a pin as input or output. X is
the pin number and Y is input/output. Used in void setup
digitalWrite(x,y) - ANSWER When you tell a previously determined
output pin to turn HIGH or LOW. Used in void loop
digitalRead(x) - ANSWER When you tell a previously determined input
pin to read its HIGH or LOW signal. Used in void loop
analogWrite(x,y) - ANSWER You tell a previously determined output
pin to send out a ranged signal. Used in void loop
analogRead(x) - ANSWER You tell a previously determined input pin to
read a ranged signal. Used in void loop
Serial.Begin(x) - ANSWER Set the reading speed to x times per
second. Used in void setup
Serial.println(x) - ANSWER Print x to the serial monitor. Used in void
loop
delay(x) - ANSWER Wait x milliseconds. Used in void loop