We're going to add buttons to the project from the previous chapter, to allow users to change the way the RGB LED works by pressing buttons. When you look at a button, you see four prongs. While there are four prongs, there are only two input/outputs to a button—one where electricity goes in, and one where it goes out when the button is pressed. This is because a button essentially controls the flow of electricity. When the button is not pressed, the contacts are not connected and electricity cannot flow, and when pressed, a conductor bridges the two sides and electricity flows. This is how we will use the button as an input device: a high signal means the button is pressed, a low signal means it isn't.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Canary Islands
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand