CODE EXPLANATION
•
void setup(){} Configures the pins, initializes the variables,
etc. It runs once.
•
pinMode(buttonPin, INPUT) A pin is either an input or an output.
•
void loop(){} Write your code between the brackets. It loops
until the board is reset or powered off.
•
digitalRead(buttonPin) Reads pins' value. The function returns
0 or 1. A digital read is perfect for monitoring the state of a
pushbutton.
•
digitalWrite(ledPin, HIGH) Sets a pin to either a logic 0 or a
logic 1.
52
Need help?
Do you have a question about the Arduino starter kit with Logic Analyzer and is the answer not in the manual?