• Tyler Hammond

The First Push Button

This is the second part of the module where we start learning about input devices, and how to control them.

To start off with, we used a simple Push Button. This was placed into the breadboard, and wired up to the input side of the Arduino.

I then created some code to detect whether the button was being pressed or not. I did this by writing a line of code that would allow me to open the serial command screen, allowing me to visually see whether the button press is being registered, and allowing me to identify if there was a delay between the button press or not.

When the button was left unpressed, the serial showed the value of '0'. When the button is then pressed, the value changes to '1', but will immediately change back when the push button is released.

2 views0 comments

Recent Posts

See All