Arduino Digital I/O and Sensors
What function is used to configure a pin as an input or output in Arduino?
Which function reads the value from a digital pin?
Write Arduino code to read a button connected to pin 2 and turn on an LED on pin 13 when the button is pressed:
A pull-up resistor is used to ensure a digital input pin reads HIGH when no button is pressed.
What does PWM stand for in Arduino programming?