-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shields: Add support for M5Stack-Core2 base shield.
M5Stack-Core2 comes with a base shield that is connected to the M5Stack extention connector. It features a MPU6886 6-axis motion tracker and a SPM1423 microphone. Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
- Loading branch information
Martin Kiepfer
committed
Oct 3, 2023
1 parent
f5ee484
commit 9a96975
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2023 Martin Kiepfer <mrmarteng@teleschirm.org> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config M5STACK_CORE2_EXT | ||
def_bool $(shields_list_contains,m5stack_core2_ext) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. _m5stack_core2_ext: | ||
|
||
M5Stack-Core2 base shield | ||
#################################### | ||
|
||
Overview | ||
******** | ||
|
||
M5Stack-Core2 comes with a base shield that is connected to the M5Stack | ||
extension connector. It features a MPU6886 6-axis motion tracker and a SPM1423 | ||
microphone. | ||
|
||
.. figure:: img/m5stack_core2_ext.webp | ||
:align: center | ||
:alt: M5Stack-Core2-EXT | ||
:width: 400 px | ||
|
||
M5Stack-Core2-Extension module | ||
|
||
Pins Assignments | ||
================ | ||
|
||
+----------------------+--------------+ | ||
| Shield Connector Pin | Function | | ||
+======================+==============+ | ||
| 0 | GND | | ||
+----------------------+--------------+ | ||
| 11 | 3.3V | | ||
+----------------------+--------------+ | ||
| 16 | I2C - intSDA | | ||
+----------------------+--------------+ | ||
| 17 | I2C - intSCL | | ||
+----------------------+--------------+ | ||
|
||
Programming | ||
*********** | ||
|
||
Set ``-DSHIELD=m5stack_core2_ext`` when you invoke ``west build``. | ||
For example: | ||
|
||
.. zephyr-app-commands:: | ||
:zephyr-app: samples/drivers/mpu6050 | ||
:board: m5stack_core2 | ||
:shield: m5stack_core2_ext | ||
:goals: build | ||
|
||
References | ||
********** | ||
|
||
.. target-notes:: | ||
|
||
.. _datasheet: | ||
https://docs.m5stack.com/en/core/core2 |
15 changes: 15 additions & 0 deletions
15
boards/shields/m5stack_core2_ext/m5stack_core2_ext.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2023 Martin Kiepfer <mrmarteng@teleschirm.org> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&m5stack_mbus_i2c0 { | ||
status = "okay"; | ||
|
||
mpu6886_m5stack_core2_ext: mbus_mpu6886@68 { | ||
status = "okay"; | ||
compatible = "invensense,mpu6050"; | ||
reg = <0x68>; | ||
}; | ||
}; |