Skip to content
This is a very simple code example using buttons attached to an Arduino to send commands to a computer over a serial connection.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Example sketch using buttons attached to an Arduino. The circuit consists of voltage dividers attached to the digital input and one lead of the button, the other lead of the button to power.

I used arcade buttons from Sparkfun, but this will work with any switch or button.

You can’t perform that action at this time.