DFRobot Gravity I2C RGB LED Color Button Module
Description
- Gravity I2C RGB LED Color Button Module
- Innovative button module with RGB LED color control
- Features high-quality button with mechanical keyboard-like feedback
- Allows cascading of up to eight modules without additional ports
- Versatile use in IoT projects, DIY electronics, and more
The Gravity I2C RGB LED Color Button Module not only allows for the reading of button status like traditional modules but also offers the unique feature of controlling the RGB LED color and independently switching the light on and off. This functionality can enhance the visual and interactive experiences of various projects. For instance, the RGB light can be programmed to blink green when the system prompts users to press the button, and then change to red once the button has been pressed.
This module is equipped with an onboard 3-bit DIP switch, which allows for the setting of 8 different I2C addresses. This means that up to 8 of these button modules can be cascaded together without the need for additional ports.
It boasts a high-quality button that provides mechanical keyboard-like tactile feedback. It also offers soft and even color light, independent control of the RGB LED, and the ability to set eight I2C addresses. It also features double I2C ports for simple cascading and an onboard interrupt interface for tasks requiring high real-time responsiveness.
The module can be utilized in a variety of applications, including simulated elevator buttons, mini matrix keyboards, Internet of Things (IoT) projects, and do-it-yourself electronic projects.
- 1x Gravity: I2C RGB LED Button Module
- 1x Gravity-4P I2C/UART Sensor Cable

- 37 x 32 x 19.5 mm / 1.46 x 1.26 x 0.77 inch
- Adjustable Color Range: R: 0-255, G: 0-255, B: 0-255
- Maximum Cascading Modules: 8
- Operating Voltage: DC 3.3 V - 5 V
- Button Travel Distance: 2±0.2 mm
- Button Life: 200,000 continuous presses
- Interrupt Mode: The interrupt interface outputs HIGH when the button is pressed
- Communication: I2C
- Connector: PH2.0-4P (Gravity standard), 2.54-5P pin header
Estimate shipping
Refund Policy
If you are not satisfied with a product purchased from the Site, you may request a return within 30 days from the delivery date, unless the product is listed under the Return Exceptions below or is subject to specific return conditions noted on the product page.
This return policy also applies, as a minimum standard, to products sold and fulfilled by third-party vendors through the Marketplace.
Please review the Return Conditions, Return Exceptions and the process on How to Request a Return Authorisation (RA) before initiating a return request.
United Kingdom consumers exercising their statutory Right of Cancellation are subject to different conditions. See the Statutory Right of Cancellation.
Returns under this policy concern non-defective products. In the case of a confirmed manufacturing defect, remedies are handled under the Warranty terms, at the Vendor's discretion. See the Warranty section.
Return Conditions
To qualify for a refund under the 30-day return policy, all of the following conditions must be met:
- A valid Return Authorisation (RA) number must be obtained prior to returning the product. Returns without an RA number will be refused.
- The RA number is valid for 30 days. The returned item must be received within that period.
- The RA number must be included with the return.
- Products must be returned in unused, unmodified condition (e.g., no scratches, alterations, missing parts, or signs of installation/use) and in their original packaging, suitable for resale.
- Shipping fees are non-refundable. Return shipping costs are the responsibility of the customer, except in cases of a product confirmed defective through RobotShop's troubleshooting process or of a verified shipping error by RobotShop.
- Refunds are processed within 7 days after receipt and inspection of the returned item.
- A £100 cleaning fee may apply to domestic robots returned in used or unclean condition.
- A 20% restocking fee may apply to large-quantity returns of items ordered specifically for the customer from the manufacturer or not part of RobotShop's standard inventory.
Return Exceptions
The following products are not eligible for return or refund under this policy:
- Used, damaged, or modified products — Items that show signs of use, wear, or alteration, making them unsuitable for resale.
- Consumables * — Use and wear-and-tear components, altered or depleted through use (e.g., batteries, belts, brushes, gears, filament, tyres, disposable bags, lubricants, greases, waxes, etc.). Not eligible for return once opened or used.
- Perishables — Goods liable to deteriorate or expire rapidly. Not eligible for return.
- Sealed goods (health or hygiene) — Items sealed for health-protection or hygiene reasons (e.g., masks, gloves, odour-absorbing products). Not eligible for return once unsealed.
- Build-it-yourself products and items requiring customer assembly * — Including robots & kits, robot parts, and other products requiring assembly or soldering. Not eligible for return once assembled, soldered, or installed.
- Digital Goods, Software, and Apps * — Final sale only, due to licensing restrictions.
- Clearance Items * — Products identified as clearance or final sale, including end-of-life or discontinued items.
- Custom-made, personalized, or special-order items — Products manufactured, configured, adapted, or built to the customer's own specifications and requirements.
- On-Demand Items * — Standard catalogue products not stocked by RobotShop and ordered specifically to fulfil a customer request.
- Professional & Specialized Equipment — See the Professional & Specialized Equipment Warranty page and Professional & Institutional Buyers (B2B) section in the Terms & Conditions.
* United-Kingdom consumers retain their statutory Right of Cancellation on these items. Its exercise is subject to the conditions and exclusions set out in the Statutory Right of Cancellation, and any reimbursement may be reduced to reflect a loss in value resulting from handling beyond inspection.
How to Request a Return Authorisation (RA)
While the same return policy applies, these orders require a separate contact process for returns.
- RobotShop Fulfilled Orders → submit a support ticket from your account under My Support Tickets.
- Marketplace Vendor Orders → submit a ticket from your account under My Marketplace Tickets to contact the vendor directly.
Note: Marketplace vendor products are normally labelled with SKUs starting with RM, and identified on the product page with the mention "Sold and fulfilled by [Vendor Name]".