Introducing M5Stack units
The M5Stack unit is a small electronic input sensor or electrical output device that extends the interactive use of the M5Stack Core. There is a variety of units to select from to create a multitude of wearable and control applications. You can select from input units or output units. Input units take physical stimuli such as light or sound to create engaging detection devices. Output units such as RGB LEDs or buzzers provide visual and audio effects to your M5Stack Core creations. Examples of M5Stack units are shown in Figure 2.1:
Figure 2.1 – Examples of M5Stack units
You attach the unit using a small jumper wire and mate it to the appropriate port. The M5Stack Core has three ports. The ports are labeled A, B, and C. The following figure shows the three ports of the M5Stack Core:
Figure 2.2 – M5Stack Core ports
You can use port A to handle basic digital input/output units along with...