Maintenance: Project Hub will be unavailable on Monday 24 (9AM to 6PM CET) while we deploy critical improvements

Simple LED Button

When you press the button, the LED turns on, Using a Snapino UNO!

Mar 18, 2021

692 views

0 respects

Components and supplies

1

LED

1

Button

2

Alligator Clips

Apps and platforms

1

Arduino IDE

Project description

Code

button_code

arduino

This code will be the only code you will need. This will tell the computer or microcontroller that pinmode 9 is connected to the button and the led is connected to pinmode 3. The microcontroller will constantly be checking if pin 2 is low. If pin 2 is low, pin three goes high.

button_code

arduino

This code will be the only code you will need. This will tell the computer or microcontroller that pinmode 9 is connected to the button and the led is connected to pinmode 3. The microcontroller will constantly be checking if pin 2 is low. If pin 2 is low, pin three goes high.

button_code

arduino

This code will be the only code you will need. This will tell the computer or microcontroller that pinmode 9 is connected to the button and the led is connected to pinmode 3. The microcontroller will constantly be checking if pin 2 is low. If pin 2 is low, pin three goes high.

Comments

Only logged in users can leave comments

Anonymous user

4 years ago

Hi Matthew, This looks great. Thank you