Dual-BUTTON

SKU:U025

Description

Dual Button as the name states, has two buttons with different color. If the Button unit is not enough for your application needs, how about double it up to a pair? They share the exact same mechanism, button status can be detected by the input pin status by simply capturing the high/low electrical level.

This unit communicates with M5Core through GROVE B port.

Product Features

Include

  • 1x Dual BUTTON Unit
  • 1x Grove Cable

Applications

  • Game Controller
  • Remote control switch

Specification

Resources Parameter
RGB LED WS2812 x 37
Net weight 8g
Gross weight 22g
Product Size 48*24*8mm
Package Size 60*57*17mm

EasyLoader

download EasyLoader

1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed. .

  1. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click "Burn" to start burning. (For M5StickC burning, please Set the baud rate to 750000 or 115200)
  1. Currently EasyLoader is only suitable for Windows operating system, compatible with M5 system adopts ESP32 as the control core host. Before installing for M5Core, you need to install CP210X driver (you do not need to install with M5StickC as controller) Click here to view the driver installation tutorial

Schematic

PinMap

M5Core (GROVE B)GPIO36GPIO265VGND
DUAL_BUTTON UnitBlue Button PinRed Button Pin5VGND

Learn

Wireless Gamepad with ESP32 and BLE
Gamepad (prototype) based on M5StickC (ESP32 Pico) with I2C joystick module, dual button unit, and Bluetooth Low Energy connectivity.

Example

Arduino

The code below is incomplete (for reference only). To get the complete code, please click here

UIFlow

Feature Introduction

Detect different states of the button and perform corresponding operations

  • Dual_Button Red wasPressed Red button press to execute the set function

  • obtain dual button Red wasPressed Check if the red button is pressed, only one time during execution

Usage

To get the complete code, please click here

Last updated: 2020-12-11