1.. _m5stack_core2_ext:
2
3M5Stack-Core2 base shield
4####################################
5
6Overview
7********
8
9`M5Stack-Core2`_ comes with a base shield that is connected to the M5Stack
10extension connector. It features an MPU6886 6-axis motion tracker (6DOF IMU)
11and a SPM1423 microphone.
12
13.. figure:: img/m5stack_core2_ext.webp
14        :align: center
15        :alt: M5Stack-Core2-EXT
16        :width: 400 px
17
18        M5Stack-Core2-Extension module
19
20.. note::
21   The SPM1423 microphone functionality is not implemented yet.
22
23Pins Assignments
24================
25
26+----------------------+--------------+
27| Shield Connector Pin | Function     |
28+======================+==============+
29| 0                    | GND          |
30+----------------------+--------------+
31| 11                   | 3.3V         |
32+----------------------+--------------+
33| 16                   | I2C - intSDA |
34+----------------------+--------------+
35| 17                   | I2C - intSCL |
36+----------------------+--------------+
37
38Programming
39***********
40
41Set ``--shield m5stack_core2_ext`` when you invoke ``west build``.
42For example:
43
44.. zephyr-app-commands::
45   :zephyr-app: samples/sensor/mpu6050
46   :board: m5stack_core2/esp32/procpu
47   :shield: m5stack_core2_ext
48   :goals: build
49
50References
51**********
52
53.. target-notes::
54
55.. _M5Stack-Core2:
56   https://docs.m5stack.com/en/core/core2
57