Buttons are an easy and tactile way to interface with your project, but why would you want to deal with debouncing, polling, and wiring up pull-up resistors? The SparkFun Qwiic Button Breakout simplifies all of those nasty worries away into an easy to use I2C device! Utilizing our Qwiic Connect System, using the button is as simple as connecting a cable and loading up some pre-written code! This breakout allows you to choose which color 12mm illuminated button you want to solder onto your breakout to match your project!
If you need multiple buttons for your project, fear not! Each button has a configurable I2C address, so you can daisy-chain multiple buttons over Qwiic and still address each one individually. We've got an example in our Arduino library that provides a super-easy way to configure your Qwiic Button to whatever I2C address you desire. You can download the library through the Arduino library manager by searching 'SparkFun Qwiic Button' or you can get the GitHub repo as a .zip file and install the library from there.
In addition to handling blinking and debouncing, the Qwiic Button has configurable interrupts which can be configured to activate upon a button press or click. We've also taken the liberty of implementing a FIFO queue onboard the Qwiic Button where it keeps an internal record of when the button was pressed. This means that code on your microcontroller need not waste valuable processing time checking the status of the button but instead can run a small function whenever the button is pressed or clicked! For more information on interrupts check out our guide here!
The SparkFun Qwiic Connect System is an ecosystem of I2C sensors, actuators, shields and cables that make prototyping faster and less prone to error. All Qwiic-enabled boards use a common 1mm pitch, 4-pin JST connector. This reduces the amount of required PCB space, and polarized connections mean you can’t hook it up wrong.
This skill defines how difficult the soldering is on a particular product. It might be a couple simple solder joints, or require special reflow tools.
Skill Level: Noob - Some basic soldering is required, but it is limited to a just a few pins, basic through-hole soldering, and couple (if any) polarized components. A basic soldering iron is all you should need.
See all skill levels
If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.
Skill Level: Noob - Programming will be limited to basic drag and drop interfaces like ModKit or Scratch. You won't be writing code, but you will still need to understand some basics of interfacing with hardware. If you?re just using a sensor, it's output is analog.
See all skill levels
If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.
Skill Level: Rookie - You may be required to know a bit more about the component, such as orientation, or how to hook it up, in addition to power requirements. You will need to understand polarized components.
See all skill levels
Based on 2 ratings:
Ideal for applications where you want to stick with the I2C scheme. I added one of the arcade-style button's (COM-09338) for some oh-so-clicky goodness to record data with the click of a button. Library is light weight with easy integration logic. Note that a 90-degree header fits perfect with the pin spacing provided; use the two soldering points adjacent to the small IC, it's not always very clear in the documentation or breakout masking which pins to use for the button-only application.
The FIFO queue functionality of the sparkfun/Qwiic Button firmware is broken. This bug was reported on Aug 26, 2020 and is still not fixed. The QWIIC button is unusable without the ability to access the button press and button click timestamps in the queue. Each queue holds 15 timestamps. The only way to access a timestamp other than the first or last is to pop the oldest (last) timestamp. The popPressedQueue function doesn't work.
Avoid all of the SparkFun QWIIC buttons and switches. Regrettably, I bought eight of them which are now paperweights.
Note: This is an issue with the QWIIC button firmware, not with the Arduino and Python libraries. If you fix the firmware yourself, you need to spend $40 in parts to reprogram the button / switch.