blocks / uno-button-led

Button and LED on an Uno

A button on D2 lights a red LED on D13 of an Arduino Uno, and the board's own L LED with it.

on Uno R3 compatible board6 parts1 test

orbe add uno-button-led

Loading the Block

A button on D2 lights a red LED on D13 of an Arduino Uno, and the board's own L LED with it.

How it works

A 10k pull-down holds D2 low while the button is open, and a 220 ohm resistor sets the LED's current.

Check it with orbe check scene.jsonc and run its tests with orbe test.

Parts in this circuit

License and files(MIT OR Apache-2.0) AND LGPL-2.1-or-later