Skip to content

Commit 97cb578

Browse files
committed
Add arduino ide depends & links
1 parent ec18814 commit 97cb578

File tree

6 files changed

+72
-52
lines changed

6 files changed

+72
-52
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
# CoreS3 Library
1+
# M5CoreS3 Library
22

33
English | [中文](README_cn.md)
44

5-
<img src="https://static-cdn.m5stack.com/resource/docs/products/core/CoreS3/img-96063e2a-637a-4d11-ac47-1ce4f1cdfd3e.webp" alt="M5Atom Lite" width="350" height="350">
5+
<img src="https://static-cdn.m5stack.com/resource/docs/products/core/CoreS3/img-96063e2a-637a-4d11-ac47-1ce4f1cdfd3e.webp" alt="M5CoreS3" width="350" height="350">
66

77
* **For the Detailed documentation of CoreS3, please [Click here](https://docs.m5stack.com/en/core/CoreS3)**
88

9+
## Depend Libraries:
10+
- [BMI270_Sensor](https://github.com/Tinyu-Zhao/BMI270_Sensor)
11+
- [M5GFX](https://github.com/m5stack/m5gfx)
12+
- [M5Unified](https://github.com/m5stack/M5unified)
13+
914
## Description
1015

1116
`CoreS3` is the third generation of the M5Stack development kit series, its core master adopts the `ESP32-S3` solution, `dual-core Xtensa LX7` processor, the main frequency is`240MHz`, comes with '`WiFi`function, and the onboard `16MFLASH`and `8M-PSRAM`; It can `download the program`through the `TYPE-C` interface, support `OTG and CDC`functions, and facilitate external USB devices and flashing firmware; The front is equipped with a `2.0-inch capacitive touch IPS screen`, and the panel is made of `high-strength glass material`; A `30w pixel camera GC0308` is built into the bottom of the screen, with `proximity sensor LTR-553ALS-WA`; The power supply part adopts `AXP2101 power management core`chip and `4-way power flow control loop`, and the overall adopts `low power consumption` design; On-board `6-axis attitude sensor BMI270 and magnetometer BMM150`; On-board `TF-card (microSD)` card slot; On-board BM8563 `RTC` chip, providing accurate timing and `sleep-timer wake-up` function; In terms of sound output, it adopts high-fidelity `16bits-I2S` power amplifier chip AW88298, and the fuselage has a built-in `1w speaker`; In terms of sound input, ES7210 `audio decoding chip + dual microphone input` is adopted; On the side of the fuselage, there is a `independent power button and restart (RST) button`, self-built delay circuit, `long press the reset button to enter the program download mode`. The CoreS3 set comes with a `DinBase Base` by default, which is convenient for `Din rail, wall and screw fixing`; It can be powered by external `DC 12V (support 9~24V)` or internal `500mAh lithium battery`; DinBase reserves multiple `proto` locations for users to `DIY`. This finished product is suitable for scenarios such as `Internet of Things development, various DIY project development, smart home control system and industrial automation control system`.
@@ -38,7 +43,7 @@ English | [中文](README_cn.md)
3843

3944
- [Complete schematic pdf](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/K128%20CoreS3/Sch_M5_CoreS3_v1.0.pdf)
4045

41-
<!--
46+
4247
## More Information
4348

44-
**Arduino IDE Development**: [Click Here](https://docs.m5stack.com/en/quick_start/atoms3/arduino) -->
49+
**Arduino IDE Development**: [Click Here](https://docs.m5stack.com/en/quick_start/cores3/arduino)

README_cn.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
# CoreS3 Library
1+
# M5CoreS3 Library
22

33
中文 | [English](README_cn.md)
44

55
<img src="https://static-cdn.m5stack.com/resource/docs/products/core/CoreS3/img-96063e2a-637a-4d11-ac47-1ce4f1cdfd3e.webp" width="350" height="350">
66

77
* **如果查看 CoreS3 的详细介绍文档,[点击这里](https://docs.m5stack.com/zh_CN/core/CoreS3)**
88

9+
## 依赖库:
10+
- [BMI270_Sensor](https://github.com/Tinyu-Zhao/BMI270_Sensor)
11+
- [M5GFX](https://github.com/m5stack/m5gfx)
12+
- [M5Unified](https://github.com/m5stack/M5unified)
13+
914
## 描述
1015

1116
`CoreS3`是M5Stack开发套件系列的第三代主机,其核心主控采用`ESP32-S3`方案,`双核Xtensa LX7`处理器,主频`240MHz`,自带`WiFi`功能,板载`16MFLASH`和`8M-PSRAM`;可通过`TYPE-C`接口`下载程序`,支持`OTG和CDC`功能,方便外接usb设备和烧录固件;正面搭载一块`2.0寸电容触摸IPS屏`,面板采用`高强度玻璃材质`;屏幕下方内置一个`30w像素的摄像头GC0308`,附带`接近传感器LTR-553ALS-WA`;电源部分采用`AXP2101电源管理芯`片及`4路电源流向控制回路`,整体采用`低功耗`设计;板载`六轴姿态传感器BMI270和磁力计BMM150`;板载`TF-card(microSD)`卡槽;板载BM8563 `RTC`芯片,提供精确计时及`休眠-定时唤醒`功能;声音输出方面采用高保真`16bits-I2S`功放芯片AW88298,机身内置`1w扬声器`;声音输入方面采用ES7210`音频解码芯片+双麦克风输入`;在机身侧边配有`独立电源按键与重启(RST)按键`,自建延时电路,`长按复位键便可进入程序下载模式`。CoreS3套装默认附带`DinBase底座`,方便实现`Din导轨、挂墙以及螺丝固定`;可外部`DC 12V(支持9~24V)`或者内部`500mAh锂电池`供电;DinBase预留多处`proto`的位置,方便用户`DIY`。本成品适用于`物联网开发、各种DIY项目开发、智能家居控制系统和工业自动化控制系统`等场景。
@@ -34,6 +39,6 @@
3439

3540
- [完整原理图pdf](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/K128%20CoreS3/Sch_M5_CoreS3_v1.0.pdf)
3641

37-
<!-- ## 更多信息
42+
## 更多信息
3843

39-
**Arduino IDE 环境搭建**: [点击这里](https://docs.m5stack.com/zh_CN/quick_start/atoms3/arduino) -->
44+
**Arduino IDE 环境搭建**: [点击这里](https://docs.m5stack.com/zh_CN/quick_start/cores3/arduino)

examples/Basics/Camera/Camera.ino

Lines changed: 51 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2023 by M5Stack
4+
* Equipped with M5CoreS3 sample source code
5+
* 配套 M5CoreS3 示例源代码
6+
* Visit for more information: https://docs.m5stack.com/en/core/CoreS3
7+
* 获取更多资料请访问: https://docs.m5stack.com/zh_CN/core/CoreS3
8+
*
9+
* Describe: Camera example.
10+
* Date: 2023/6/17
11+
*******************************************************************************
12+
*/
13+
#include <M5CoreS3.h>
114
#include "esp_camera.h"
215
#include <WiFi.h>
316
#include <M5Unified.h>
417
#include "CoreS3_GC0308.hpp"
518

6-
#define PWDN_GPIO_NUM -1
19+
// Configure the name and password of the connected wifi.
20+
// 配置所连接wifi的名称、密码
21+
const char* ssid = "**********";
22+
const char* password = "**********";
23+
24+
#define PWDN_GPIO_NUM -1
725
#define RESET_GPIO_NUM -1
8-
#define XCLK_GPIO_NUM -1
9-
#define SIOD_GPIO_NUM -1
10-
#define SIOC_GPIO_NUM -1
26+
#define XCLK_GPIO_NUM -1
27+
#define SIOD_GPIO_NUM -1
28+
#define SIOC_GPIO_NUM -1
1129

1230
#define Y2_GPIO_NUM 39
1331
#define Y3_GPIO_NUM 40
@@ -19,14 +37,8 @@
1937
#define Y9_GPIO_NUM 47
2038

2139
#define VSYNC_GPIO_NUM 46
22-
#define HREF_GPIO_NUM 38
23-
#define PCLK_GPIO_NUM 45
24-
25-
// ===========================
26-
// Enter your WiFi credentials
27-
// ===========================
28-
const char* ssid = "**********";
29-
const char* password = "**********";
40+
#define HREF_GPIO_NUM 38
41+
#define PCLK_GPIO_NUM 45
3042

3143
void startCameraServer();
3244

@@ -37,42 +49,40 @@ void setup() {
3749
Serial.println();
3850

3951
camera_config_t config;
40-
config.ledc_channel = LEDC_CHANNEL_0;
41-
config.ledc_timer = LEDC_TIMER_0;
42-
config.pin_d0 = Y2_GPIO_NUM;
43-
config.pin_d1 = Y3_GPIO_NUM;
44-
config.pin_d2 = Y4_GPIO_NUM;
45-
config.pin_d3 = Y5_GPIO_NUM;
46-
config.pin_d4 = Y6_GPIO_NUM;
47-
config.pin_d5 = Y7_GPIO_NUM;
48-
config.pin_d6 = Y8_GPIO_NUM;
49-
config.pin_d7 = Y9_GPIO_NUM;
50-
config.pin_xclk = XCLK_GPIO_NUM;
51-
config.pin_pclk = PCLK_GPIO_NUM;
52-
config.pin_vsync = VSYNC_GPIO_NUM;
53-
config.pin_href = HREF_GPIO_NUM;
54-
config.pin_sccb_sda = SIOD_GPIO_NUM;
55-
config.pin_sccb_scl = SIOC_GPIO_NUM;
56-
config.pin_pwdn = PWDN_GPIO_NUM;
57-
config.pin_reset = RESET_GPIO_NUM;
58-
config.xclk_freq_hz = 20000000;
59-
config.frame_size = FRAMESIZE_QVGA;
60-
config.pixel_format = PIXFORMAT_RGB565;
61-
config.grab_mode = CAMERA_GRAB_WHEN_EMPTY;
62-
config.fb_location = CAMERA_FB_IN_PSRAM;
63-
config.jpeg_quality = 0;
64-
config.fb_count = 2;
52+
config.ledc_channel = LEDC_CHANNEL_0;
53+
config.ledc_timer = LEDC_TIMER_0;
54+
config.pin_d0 = Y2_GPIO_NUM;
55+
config.pin_d1 = Y3_GPIO_NUM;
56+
config.pin_d2 = Y4_GPIO_NUM;
57+
config.pin_d3 = Y5_GPIO_NUM;
58+
config.pin_d4 = Y6_GPIO_NUM;
59+
config.pin_d5 = Y7_GPIO_NUM;
60+
config.pin_d6 = Y8_GPIO_NUM;
61+
config.pin_d7 = Y9_GPIO_NUM;
62+
config.pin_xclk = XCLK_GPIO_NUM;
63+
config.pin_pclk = PCLK_GPIO_NUM;
64+
config.pin_vsync = VSYNC_GPIO_NUM;
65+
config.pin_href = HREF_GPIO_NUM;
66+
config.pin_sccb_sda = SIOD_GPIO_NUM;
67+
config.pin_sccb_scl = SIOC_GPIO_NUM;
68+
config.pin_pwdn = PWDN_GPIO_NUM;
69+
config.pin_reset = RESET_GPIO_NUM;
70+
config.xclk_freq_hz = 20000000;
71+
config.frame_size = FRAMESIZE_QVGA;
72+
config.pixel_format = PIXFORMAT_RGB565;
73+
config.grab_mode = CAMERA_GRAB_WHEN_EMPTY;
74+
config.fb_location = CAMERA_FB_IN_PSRAM;
75+
config.jpeg_quality = 0;
76+
config.fb_count = 2;
6577
config.sccb_i2c_port = M5.In_I2C.getPort();
66-
67-
78+
6879
// camera init
6980
esp_err_t err = esp_camera_init(&config);
7081
if (err != ESP_OK) {
7182
Serial.printf("Camera init failed with error 0x%x", err);
7283
return;
7384
}
74-
if(!cam::GC0308::complementDriver())
75-
{
85+
if (!cam::GC0308::complementDriver()) {
7686
M5_LOGE("Failed to complement GC0308");
7787
}
7888

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "git",
1111
"url": "https://github.com/m5stack/M5CoreS3.git"
1212
},
13-
"version": "0.0.2",
13+
"version": "0.0.3",
1414
"frameworks": "arduino",
1515
"platforms": "espressif32",
1616
"headers": "M5CoreS3.h"

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=M5CoreS3
2-
version=0.0.2
2+
version=0.0.3
33
author=M5Stack
44
maintainer=M5Stack
55
sentence=Library for M5CoreS3 Core development kit
@@ -8,4 +8,4 @@ category=Device Control
88
url=https://github.com/m5stack/M5CoreS3
99
architectures=esp32
1010
includes=M5CoreS3.h
11-
depends=M5Family
11+
depends=M5Family,BMI270_Sensor,M5GFX,M5Unified

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; Please visit documentation for the other options and examples
99
; https://docs.platformio.org/page/projectconf.html
1010

11-
[env:esp32-s3-devkitc-1]
11+
[env:M5CoreS3]
1212
platform = espressif32
1313
board = esp32-s3-devkitc-1
1414
framework = arduino

0 commit comments

Comments
 (0)