Skip to main content
100%

Gist d1078368f5abf1c151c087b778dfbdaf

✓ Published0🌍 Public
SServuc
Last edited Nov 20, 2020
Created on Nov 20, 2020

This example shows a simple Arduino program that reads a digital input from pin 2 and mirrors its state to an LED on pin 13. The setup configures the LED as an output and the input pin, while the loop continuously samples the switch every 100 milliseconds and writes the corresponding HIGH or LOW value using `digitalWrite`. It demonstrates basic I/O control and debouncing-free state reading with the Arduino `pinMode` and `digitalRead` APIs.

AI-generated description

Similar vizzes