BOB-15932,按鈕是一種與您的項目交互的簡單且有觸覺的方式,但為什么您要處理去抖、輪詢和連接
上拉電阻。帶有內置紅色
LED 的 Qwiic 按鈕將所有這些令人討厭的擔憂簡化為易于使用的 I2C 設備。利用我們的 Qwiic Connect 系統,使用按鈕就像連接電纜并加載一些預先編寫的
代碼一樣簡單。如果您的項目需要多個按鈕,請不要擔心。每個按鈕都有一個可配置的 I2C 地址,因此您可以通過 Qwiic 以菊花鏈方式連接多個按鈕,并且仍然可以單獨對每個按鈕進行尋址。我們的 Arduino 庫中有一個示例,它提供了一種超級簡單的方法來將您的 Qwiic 按鈕配置為您想要的任何 I2C 地址
說明
-
BOB-15932, 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 Qwiic Button with built-in red LED 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. 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