Description:

Dual Button

, as its namesake, has two buttons with different color. If the Button is not enough, how about double it up to a pair. They share the exact same mechanism, button status can be detected by the input pin status,simply capture the high/low electrical level.

This communicates with M5Core through GROVE B port.

Output status:

Product Features:

GROVE interface, support UIFlow

and 

Two Le go-compatible holes

Product Size: 48.2mm x 24.2mm x 15.2mm

Product weight: 7.6g

Package Included:

5 x Dual BUTTON

5 x Grove Cable

Application:

Game Controller

Remote control switch

Related Link:

Offical Video

Forum

EasyLoader

1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.

2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn"

to start burning.  

3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial

Example:

1. for IDE

The code below is incomplete(just for usage). TO get the complete code, please click 

here

.

#include <

.h

>

// declaration int cur_value_red = 0; int cur_value_blue = 0; // initialization M5.begin(); pinMode(26, INPUT);// Red Button Pin setting pinMode(36, INPUT);// Blue Button Pin setting // read data cur_value_red = digitalRead(26); cur_value_blue = digitalRead(36); M5.update();

2. UIFlow

To get the complete code, please click here

.

Schematic:

PinMap:

M5Core (GROVE B)

GPIO36