diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 2e141cbd..f59d7f56 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -334,7 +334,10 @@ body[data-page="ja/README.md"] #application { #hat, #hat-env, #hat-pir, -#hat-spk { +#hat-spk, +#hat-proto, +#hat-ncir, +#hat-thermal { width: 0; height: 0; overflow: hidden; diff --git a/docs/assets/img/faq/m5stickc_05.jpg b/docs/assets/img/faq/m5stickc_05.jpg new file mode 100644 index 00000000..39021dff Binary files /dev/null and b/docs/assets/img/faq/m5stickc_05.jpg differ diff --git a/docs/assets/img/getting_started_pics/m5stickv/1561458023(1).jpg b/docs/assets/img/getting_started_pics/m5stickv/1561458023(1).jpg new file mode 100644 index 00000000..60835c31 Binary files /dev/null and b/docs/assets/img/getting_started_pics/m5stickv/1561458023(1).jpg differ diff --git a/docs/assets/img/getting_started_pics/m5stickv/1561458061(1).jpg b/docs/assets/img/getting_started_pics/m5stickv/1561458061(1).jpg new file mode 100644 index 00000000..5832f75d Binary files /dev/null and b/docs/assets/img/getting_started_pics/m5stickv/1561458061(1).jpg differ diff --git a/docs/assets/img/getting_started_pics/m5stickv/kflash_gui_01.jpg b/docs/assets/img/getting_started_pics/m5stickv/kflash_gui_01.jpg new file mode 100644 index 00000000..c5491804 Binary files /dev/null and b/docs/assets/img/getting_started_pics/m5stickv/kflash_gui_01.jpg differ diff --git a/docs/assets/img/getting_started_pics/m5stickv/kflash_gui_02.jpg b/docs/assets/img/getting_started_pics/m5stickv/kflash_gui_02.jpg new file mode 100644 index 00000000..a50875d1 Binary files /dev/null and b/docs/assets/img/getting_started_pics/m5stickv/kflash_gui_02.jpg differ diff --git a/docs/assets/img/getting_started_pics/m5stickv/putty_01.jpg b/docs/assets/img/getting_started_pics/m5stickv/putty_01.jpg new file mode 100644 index 00000000..57b973a0 Binary files /dev/null and b/docs/assets/img/getting_started_pics/m5stickv/putty_01.jpg differ diff --git a/docs/assets/img/getting_started_pics/m5stickv/putty_02.jpg b/docs/assets/img/getting_started_pics/m5stickv/putty_02.jpg new file mode 100644 index 00000000..93a751c9 Binary files /dev/null and b/docs/assets/img/getting_started_pics/m5stickv/putty_02.jpg differ diff --git a/docs/assets/img/i2c_address/core_i2c.jpg b/docs/assets/img/i2c_address/core_i2c.jpg new file mode 100644 index 00000000..956d7dbc Binary files /dev/null and b/docs/assets/img/i2c_address/core_i2c.jpg differ diff --git a/docs/assets/img/i2c_address/module_i2c.jpg b/docs/assets/img/i2c_address/module_i2c.jpg new file mode 100644 index 00000000..f54dadf5 Binary files /dev/null and b/docs/assets/img/i2c_address/module_i2c.jpg differ diff --git a/docs/assets/img/i2c_address/unit_i2c.jpg b/docs/assets/img/i2c_address/unit_i2c.jpg new file mode 100644 index 00000000..7a487009 Binary files /dev/null and b/docs/assets/img/i2c_address/unit_i2c.jpg differ diff --git a/docs/assets/img/product_pics/core/minicore/m5stickc/m5stickc_06.png b/docs/assets/img/product_pics/core/minicore/m5stickc/m5stickc_06.png index 5424b773..f26e8d6e 100644 Binary files a/docs/assets/img/product_pics/core/minicore/m5stickc/m5stickc_06.png and b/docs/assets/img/product_pics/core/minicore/m5stickc/m5stickc_06.png differ diff --git a/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_01.jpg b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_01.jpg new file mode 100644 index 00000000..d7ecde7c Binary files /dev/null and b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_01.jpg differ diff --git a/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_02.jpg b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_02.jpg new file mode 100644 index 00000000..5ba88058 Binary files /dev/null and b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_02.jpg differ diff --git a/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_03.jpg b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_03.jpg new file mode 100644 index 00000000..5fa7fca9 Binary files /dev/null and b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_03.jpg differ diff --git a/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_04.jpg b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_04.jpg new file mode 100644 index 00000000..1e5cbb28 Binary files /dev/null and b/docs/assets/img/product_pics/hat/ncir_hat/hat_ncir_04.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_hat/hat_proto_01.jpg b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_01.jpg new file mode 100644 index 00000000..d133b437 Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_01.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_hat/hat_proto_02.jpg b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_02.jpg new file mode 100644 index 00000000..4da56d32 Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_02.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_hat/hat_proto_03.jpg b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_03.jpg new file mode 100644 index 00000000..6f15f9f4 Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_03.jpg differ diff --git a/docs/assets/img/product_pics/hat/proto_hat/hat_proto_04.jpg b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_04.jpg new file mode 100644 index 00000000..3029148c Binary files /dev/null and b/docs/assets/img/product_pics/hat/proto_hat/hat_proto_04.jpg differ diff --git a/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_01.jpg b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_01.jpg new file mode 100644 index 00000000..5c91cd33 Binary files /dev/null and b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_01.jpg differ diff --git a/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_02.jpg b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_02.jpg new file mode 100644 index 00000000..7aae3085 Binary files /dev/null and b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_02.jpg differ diff --git a/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_03.jpg b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_03.jpg new file mode 100644 index 00000000..498fd336 Binary files /dev/null and b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_03.jpg differ diff --git a/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_04.jpg b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_04.jpg new file mode 100644 index 00000000..f48ac751 Binary files /dev/null and b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_04.jpg differ diff --git a/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_05.jpg b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_05.jpg new file mode 100644 index 00000000..e45b98d8 Binary files /dev/null and b/docs/assets/img/product_pics/hat/thermal_hat/hat_thermal_05.jpg differ diff --git a/docs/en/faq.md b/docs/en/faq.md index 072d4f92..d5fe1e60 100644 --- a/docs/en/faq.md +++ b/docs/en/faq.md @@ -110,6 +110,16 @@ +- **Q9: One issue commonly exists on M5Stick-C, which happens when the battery is at a low level. In this case, some of the devices will have problem powering on, this is probably caused by a chaos timing sequence of power-on of ESP32, some component is involved, such as AXP192, 552, ESP32** + +
+ +
+ + There is one way to bring the device back to live: 1, Connect G0 to 3V3. 2. Plug in the USB cable. 3, The screen will light up and leave the USB to charge the device. +
+
+ ## UNIT Question - **Q1: What is the difference between the various cameras of M5Stack?** @@ -131,90 +141,4 @@
After testing, using M5Camera indoors can transmit about 20 meters.
- - - - - - + \ No newline at end of file diff --git a/docs/en/hat/hat-env.md b/docs/en/hat/hat-env.md index eb2a836b..69ac0ad5 100644 --- a/docs/en/hat/hat-env.md +++ b/docs/en/hat/hat-env.md @@ -70,7 +70,7 @@ Typical Magnetic Field: ### Pin Map - - + +
M5Core(GROVE A)GPIO22GPIO215VGND
ENV UnitSCLSDA5VGND
M5StickCGPIO0GPIO265VGND
HAT ENVSCLSDA5VGND
diff --git a/docs/en/hat/hat-pir.md b/docs/en/hat/hat-pir.md index 2b327491..d869760b 100644 --- a/docs/en/hat/hat-pir.md +++ b/docs/en/hat/hat-pir.md @@ -35,9 +35,6 @@ ## Schematic - - - ## Links @@ -60,3 +57,10 @@ ## Example - **[Arduino](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ENV)** + +### Pin Map + + + + +
M5StickCGPIO365VGND
HAT PIROUT5VGND
\ No newline at end of file diff --git a/docs/en/hat/hat-spk.md b/docs/en/hat/hat-spk.md index aa93bd28..68347e25 100644 --- a/docs/en/hat/hat-spk.md +++ b/docs/en/hat/hat-spk.md @@ -60,3 +60,9 @@ +### Pin Map + + + + +
M5StickCGPIO0GPIO265VGND
HAT SPKSDIN-5VGND
\ No newline at end of file diff --git a/docs/en/module/faces_finger.md b/docs/en/module/faces_finger.md index 668ac74c..44c23387 100644 --- a/docs/en/module/faces_finger.md +++ b/docs/en/module/faces_finger.md @@ -4,7 +4,7 @@ *** -:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**      🛒**[Purchase](https://m5stack.com/collections/m5-module/products/finger-print-fpc-1020a-panel-for-m5-faces)**      :octocat:**[Code](#Code)** +:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**      🛒**[Purchase](https://m5stack.com/collections/m5-module/products/finger-print-fpc-1020a-panel-for-m5-faces)**      :octocat:**[Code](#Code)**   **[EasyLoader](#EasyLoader)** ## Description @@ -39,6 +39,19 @@ Communication Protocol: UART. - 1x FACES-FINGER Panel + +## 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](en/related_documents/establish_serial_connection) + ## Schematic diff --git a/docs/en/module/faces_rfid.md b/docs/en/module/faces_rfid.md index c25c35f3..fee0ed2c 100644 --- a/docs/en/module/faces_rfid.md +++ b/docs/en/module/faces_rfid.md @@ -4,7 +4,7 @@ *** -:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**      🛒**[Purchase](https://m5stack.com/collections/m5-module/products/rfid-rc522-panel-for-m5-faces)**      :octocat:**[Code](#Code)** +:memo:**[Description](#Description)**      :electric_plug:**[Schematic](#Schematic)**      🛒**[Purchase](https://m5stack.com/collections/m5-module/products/rfid-rc522-panel-for-m5-faces)**      :octocat:**[Code](#Code)**   **[EasyLoader](#EasyLoader)** ## Description @@ -38,6 +38,18 @@ Communication Protocol: I2C. - 1x RFID card - 1x Fudan S50 card +## 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](en/related_documents/establish_serial_connection) + ## Schematic diff --git a/docs/en/module/stepmotor.md b/docs/en/module/stepmotor.md index e3e719a4..288b5479 100644 --- a/docs/en/module/stepmotor.md +++ b/docs/en/module/stepmotor.md @@ -40,6 +40,8 @@ Integrated 3 DRV8825, a simple but very powerful board that can control one bipo - **[The Firmware of inside MEGA328](https://github.com/m5stack/stepmotor_module/tree/master/Firmware%20for%20stepmotor%20module/GRBL-Arduino-Library)** +- **[DRV8825 Datasheet](https://www.pololu.com/file/0J590/drv8825.pdf)** + ## EasyLoader diff --git a/docs/index.html b/docs/index.html index 07415556..dc14ae7a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ - + M5Stack - A series of modular stackable development devices @@ -83,7 +83,39 @@ - + + + + diff --git a/docs/index.md b/docs/index.md index d7f0a1b2..4fd4dbf0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,4 @@ -# Product Documents +# Product Documents {docsify-ignore-all} *** @@ -9,22 +9,16 @@ Core - - ## BASIC ## GRAY ## FIRE - M5Core QuickStart     - IIC AddressTable     + IIC AddressTable     Cores comparison » - **M5Core** - -
@@ -49,15 +43,11 @@ ## M5Stick ## M5StickC - M5Stick QuickStart     M5StickC QuickStart » - **M5Stick** - -
@@ -76,14 +66,11 @@ ## M5GO Kit ## FACES Kit - M5GO QuickStart     FACES-kit QuickStart » - **M5GO/FACES Kit** - - + +IIC AddressTable     ## GPS ## LORA @@ -410,6 +398,7 @@ Camera QuickStart     + IIC AddressTable     Cameras comparison » @@ -767,6 +756,9 @@ ## HAT-ENV ## HAT-PIR ## HAT-SPK +## HAT-PROTO +## HAT-THERMAL +## HAT-NCIR + + **Visual class** @@ -1033,7 +1046,86 @@
`); }); + + + - \ No newline at end of file + + + + + + + +
+ + + + + + + +
+ + + + diff --git a/docs/sidebar.md b/docs/sidebar.md index 615888b8..dc642165 100644 --- a/docs/sidebar.md +++ b/docs/sidebar.md @@ -9,4 +9,185 @@ -
M5Stack - [![Github](https://icongram.jgog.in/simple/github.svg?color=808080&size=16)Github](https://github.com/m5stack) - [![Twitter](https://icongram.jgog.in/simple/twitter.svg?colored&size=16)@M5Stack](http://twitter.com/M5Stack) -- [![Facebook](https://icongram.jgog.in/simple/facebook.svg?colored&size=16)@M5Stack](https://www.facebook.com/M5Stack) \ No newline at end of file +- [![Facebook](https://icongram.jgog.in/simple/facebook.svg?colored&size=16)@M5Stack](https://www.facebook.com/M5Stack) + + + + + + diff --git a/docs/zh_CN/README.md b/docs/zh_CN/README.md index de113898..ad170360 100644 --- a/docs/zh_CN/README.md +++ b/docs/zh_CN/README.md @@ -1,4 +1,4 @@ -# 产品列表 +# 产品列表 {docsify-ignore-all} *** @@ -9,17 +9,16 @@ Core
- ## BASIC ## GRAY ## FIRE - + M5Core上手指南     - IIC地址表     + IIC地址表     款式硬件区别 » - + **M5Core** @@ -110,7 +109,7 @@ Module - + ## GPS ## LORA @@ -118,6 +117,8 @@ ## SIM800L ## COMMU +IIC地址表     + **通讯模块**
@@ -292,7 +293,6 @@ Base
-   @@ -390,7 +390,6 @@ *** # Unit -
@@ -402,13 +401,14 @@ ## M5CameraF ## M5CameraX - + 摄像头上手指南     + IIC地址表     款式硬件区别 » - + **摄像头类** - +
@@ -589,12 +589,6 @@

OP.180

- **交互类** @@ -765,6 +759,9 @@ ## HAT-ENV ## HAT-PIR ## HAT-SPK +## HAT-PROTO +## HAT-THERMAL +## HAT-NCIR
@@ -787,6 +784,26 @@

SPK

+ **视觉类** @@ -848,6 +865,8 @@ Application
+ + ## BALA @@ -963,11 +982,14 @@ Aluminium Profile + ## CORNER ## NUT ## Connector ## Aluminium-Profile-1515 + +
@@ -1033,4 +1055,81 @@ - \ No newline at end of file + + + + + + + + + + +
+ + + + + + + + + +
\ No newline at end of file diff --git a/docs/zh_CN/api.md b/docs/zh_CN/api.md index 0c5f1a93..a166fadd 100644 --- a/docs/zh_CN/api.md +++ b/docs/zh_CN/api.md @@ -8,7 +8,7 @@ |**[LCD 屏](zh_CN/api/lcd)** | **[按键](zh_CN/api/button)** | |**[MPU9250](zh_CN/api/mpu9250)** | **[TF 卡](zh_CN/api/tf)** | |**[电源管理](zh_CN/api/power)** |**[I/O](zh_CN/api/gpio)** | -|**[I2C 沟通](zh_CN/api/commutil)** | | +|**[I2C](zh_CN/api/commutil)** | | + +### 管脚映射 + + + + +
M5StickCGPIO0GPIO263.3VGND
HAT ThermalSDASCL-3.3VGND
\ No newline at end of file diff --git a/docs/zh_CN/module/faces_finger.md b/docs/zh_CN/module/faces_finger.md index 79811081..3dd1c125 100644 --- a/docs/zh_CN/module/faces_finger.md +++ b/docs/zh_CN/module/faces_finger.md @@ -42,17 +42,17 @@ - 指纹储物柜 - +!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动) ## 原理图 diff --git a/docs/zh_CN/module/faces_rfid.md b/docs/zh_CN/module/faces_rfid.md index 67e67222..d9b93d6a 100644 --- a/docs/zh_CN/module/faces_rfid.md +++ b/docs/zh_CN/module/faces_rfid.md @@ -44,17 +44,17 @@ - 智能书架 - +!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动) diff --git a/docs/zh_CN/module/stepmotor.md b/docs/zh_CN/module/stepmotor.md index 75dd75cf..bb869cdd 100644 --- a/docs/zh_CN/module/stepmotor.md +++ b/docs/zh_CN/module/stepmotor.md @@ -40,6 +40,8 @@ - **[STEPMOTOR 固件](https://github.com/m5stack/stepmotor_module/tree/master/Firmware%20for%20stepmotor%20module/GRBL-Arduino-Library)** +- **[DRV8825 数据手册](https://www.pololu.com/file/0J590/drv8825.pdf)** + ## EasyLoader diff --git a/docs/zh_CN/quick_start/m5stickv/m5stickv_quick_start.md b/docs/zh_CN/quick_start/m5stickv/m5stickv_quick_start.md new file mode 100644 index 00000000..f3f90107 --- /dev/null +++ b/docs/zh_CN/quick_start/m5stickv/m5stickv_quick_start.md @@ -0,0 +1,129 @@ +# M5StickV 上手指南 {docsify-ignore-all} + +## 目录 + +**[1. 准备工作](#准备工作)** + +**[2. 烧录固件](#烧录固件)** + +**[3. 串口调试工具](#串口调试工具)** + +**[4. Hello World](#Hello-World)** + +**[5. 编辑与运行文件](#编辑与运行文件)** + +**[6. 程序库](#程序库)** + + + + +## 准备工作 + +>1.下载固件文件,访问PASSSSSSS,根据你的需求下载相应的固件文件,下方为固件类型基本介绍. + +
+
    +
  • maixpy_v*_no_lvgl.bin: MaixPy固件, 不带LVGL版本.(LVGL是嵌入式GUI框架, 写界面的时候需要用到)
  • +
  • maixpy_v*_full.bin: 完整版的MaixPy固件(MicroPython + OpenMV API + lvgl )
  • +
  • maixpy_v0.3.1_minimum.bin: MaixPy固件最小集合,不支持 MaixPy IDE, 不包含OpenMV的相关算法
  • +
  • face_model_at_0x300000.kfpkg: 人脸模型,放置在地址位 0x300000, 可以和.bin分开多次下载,不冲突
  • +
  • elf.7z: elf 文件,用于死机调试
  • +
+
+ +## 烧录固件 + + +>1.下载固件烧录工具[Kflash_GUI](https://github.com/sipeed/kflash_gui/releases). + +>2.将设备通过Tpye-C数据线连接至电脑,双击打开烧录工具**Kflash_GUI**应用程序,选择对应的设备端口、固件程序、波特率. 点击下载,开始烧录. (固件文件与模型文件可分开烧录,二者不冲突) + + + +### Kflash + +>1.对于习惯使用命令行操作的用户来说还可以选择Kflash作为固件烧录工具.[点击此处查看详情](https://github.com/kendryte/kflash.py) + + +## 串口调试工具 + +### For Windows + +>[点击此处](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)访问Putty资源页面,选择对应自己操作系统Putty进行下载,并安装. + + + +> MaixPy 的交互界面. + + + + +## Hello World + +>在命令行输入下方代码,M5StickV屏幕将显示"hello world". + +``` +import lcd + +lcd.init() +lcd.draw_string(100, 100, "hello world", lcd.RED, lcd.BLACK) + +``` + + +## 编辑与运行文件 + +### 编辑文件 + +>在交互解释器(REPL)中,我们能够便捷的输入程序并马上得到运行结果,但这仅适合用作短程序的验证,在实际项目中,庞大代码量使得我们不得不将代码编辑成一个个的文件. + +>在 MaixPy 中,内置了一款编开源编辑器 [Micropython Editor(pye)](https://github.com/robert-hh/Micropython-Editor),这使得我们能够非常方便的修改程序文件. + +使用 `os.listdir()` 可以查看当前目录下的文件, + +使用 `pye("hello.py")` 可以创建文件并进入编辑模式(已存在同名文件,则仅进入编辑), 快捷键等使用说明可以在[这里查看](https://github.com/robert-hh/Micropython-Editor/blob/master/Pyboard%20Editor.pdf) + +在编辑器中完成编辑后,按 `Ctrl+S` > `Enter` 键进行保存, 按 `Ctrl+Q` 退出编辑 + +**注意**: 使用这款编辑器对使用的串口工具有一定要求, 必须将 `BackSpace` 按键设置为 `DEL` 功能, 否则按 `BackSpace` 调用的是 `Ctrl+H` 一样的功能(即字符替换) + +### 上传文件 + +>虽然 MaixPy 内置编辑器使得我们能够直接操作文件内容.但对于多文件的情况下,使用电脑的其他编辑器编写代码然后再将文件上传,将大大提升工作效率. + +>[uPyLoader](https://github.com/BetaRavener/uPyLoader) 是一款开源软件,使用它可以方便地连接 MaixPy 并且上传、下载、执行文件,同时监控输出等等功能,功能比较完善 + +[下载uPyLoader](https://github.com/BetaRavener/uPyLoader/releases) + +### 运行文件 + +使用 `os.chdir()` 切换当前目录到文件的目录,比如 `os.chdir("/flash")` + +#### 方法一: `import` + +然后执行 `import hello` + +即可看到输出 `hello maixpy` + +使用此方法简单易用,但是需要注意的是, 目前 `import` 只能使用一次, 如果第二次 `import`, 则文件不会再执行, 如果需要多次执行,建议使用下面的方法 + +#### 方法二: `exec()` + +使用 `exec()` 函数来执行 + +```python +with open("hello.py") as f: + exec(f.read()) + +``` + +### 开机自动运行脚本 + +系统会在 `/flash` 或者 `/sd` 目录创建 `boot.py` 文件, 开机会自动先执行这个脚本, 编辑这个脚本的内容即可实现开机自启 + + + + +## 程序库 + +>1.[查看更多程序案例](https://github.com/sipeed/kflash_gui/releases). \ No newline at end of file diff --git a/docs/zh_CN/sidebar.md b/docs/zh_CN/sidebar.md index 05d8d4ce..376011cd 100644 --- a/docs/zh_CN/sidebar.md +++ b/docs/zh_CN/sidebar.md @@ -1,4 +1,4 @@ -- [产品介绍](zh_CN/) +- [产品列表](zh_CN/) - [Arduino API](zh_CN/api) - [M5Stack 案例](zh_CN/case) - [相关文档](zh_CN/related_documents) diff --git a/docs/zh_CN/unit/m5camera.md b/docs/zh_CN/unit/m5camera.md index 7ee362a8..d44e3c39 100644 --- a/docs/zh_CN/unit/m5camera.md +++ b/docs/zh_CN/unit/m5camera.md @@ -211,6 +211,10 @@ Model A 和 Model B,它们有着不同的电路设计、可以通过背面贴 - **[MPU6050](https://github.com/m5stack/m5stack-cam-psram/tree/master/mpu6050/firmware/Camera%20B)**(焊接**MPU6050**芯片后,陀螺仪的例程) +### 源码 + + - **[M5Camera](https://github.com/m5stack/m5stack-cam-psram)** + ## 原理图 ### 电源电路 diff --git a/docs/zh_CN/unit/m5camera_f.md b/docs/zh_CN/unit/m5camera_f.md index 0908998f..45361a33 100644 --- a/docs/zh_CN/unit/m5camera_f.md +++ b/docs/zh_CN/unit/m5camera_f.md @@ -198,6 +198,9 @@ - **[MPU6050](https://github.com/m5stack/m5stack-cam-psram/tree/master/mpu6050/firmware/Camera%20F)**(焊接**MPU6050**芯片后,陀螺仪的例程) +### 源码 + + - **[M5Camera](https://github.com/m5stack/m5stack-cam-psram)** ## 原理图 diff --git a/docs/zh_CN/unit/m5camera_x.md b/docs/zh_CN/unit/m5camera_x.md index 56d360e9..ae7ff353 100644 --- a/docs/zh_CN/unit/m5camera_x.md +++ b/docs/zh_CN/unit/m5camera_x.md @@ -187,6 +187,9 @@ - **[MPU6050](https://github.com/m5stack/m5stack-cam-psram/tree/master/mpu6050/firmware/Camera%20X)**(焊接**MPU6050**芯片后,陀螺仪的例程) +### 源码 + + - **[M5Camera](https://github.com/m5stack/m5stack-cam-psram)** ## 原理图