mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-11 00:22:49 -05:00
update maixpy ci
This commit is contained in:
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -46,6 +46,11 @@ jobs:
|
||||
teedoc build
|
||||
echo "== build complete =="
|
||||
out_dir=out`python3 -c 'import json; f=open("site_config.json");config=json.load(f);print(config["site_root_url"])'`
|
||||
echo "== clone MaixPy gh-pages =="
|
||||
git clone https://github.com/sipeed/MaixPy --depth=1 --branch=gh-pages
|
||||
echo "== copy maixpy dir to out_dir =="
|
||||
mv MaixPy/maixpy $out_dir
|
||||
rm -rf MaixPy
|
||||
mv $out_dir ../
|
||||
remote_addr=`git remote get-url --push origin`
|
||||
remote_addr=`echo $remote_addr| awk -F'://' '{print $2}'`
|
||||
|
||||
@@ -92,24 +92,14 @@
|
||||
"url": "https://sipeed.taobao.com/",
|
||||
"target": "_blank"
|
||||
},
|
||||
{
|
||||
"label": "网站使用 teedoc 生成",
|
||||
"url": "https://github.com/neutree/teedoc",
|
||||
"target": "_blank"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "网站统计",
|
||||
"items": [
|
||||
{
|
||||
"label": "百度统计",
|
||||
"url": "https://tongji.baidu.com/web/welcome/ico?s=9cb07365544a53067c56c346c838181a",
|
||||
"target": "_blank"
|
||||
},
|
||||
{
|
||||
"label": "网站地图",
|
||||
"url": "/sitemap.xml"
|
||||
},
|
||||
{
|
||||
"label": "网站使用 teedoc 生成",
|
||||
"url": "https://github.com/teedoc/teedoc",
|
||||
"target": "_blank"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -110,7 +110,7 @@ According to the pin number of your own connection, `init(i2s_d0=23, i2s_d1=22,
|
||||
|
||||
#### SK9822 driver codes
|
||||
|
||||
For reference only, source:[github](https://github.com/sipeed/MaixPy/blob/master/components/kendryte_sdk/src/sipeed_sk9822.c); It is recommended to copy the code to the computer local editor to view if analyzing the code.
|
||||
For reference only, source:[github](https://github.com/sipeed/MaixPy-v1blob/master/components/kendryte_sdk/src/sipeed_sk9822.c); It is recommended to copy the code to the computer local editor to view if analyzing the code.
|
||||
|
||||
<details>
|
||||
<summary>sipeed_sk9822.c</summary>
|
||||
@@ -391,7 +391,7 @@ void sipeed_init_mic_array_led(void)
|
||||
|
||||
#### Micarray code
|
||||
|
||||
For reference only, source:[github](https://github.com/sipeed/MaixPy/blob/master/components/micropython/port/src/Maix/Maix_mic_array.c); It is recommended to copy the code to the computer local editor to view if analyzing the code.
|
||||
For reference only, source:[github](https://github.com/sipeed/MaixPy-v1blob/master/components/micropython/port/src/Maix/Maix_mic_array.c); It is recommended to copy the code to the computer local editor to view if analyzing the code.
|
||||
|
||||
## Other information
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ desc: maixpy Grove AI HAT
|
||||
|
||||
| 传感器 | 功能 | I2C 地址(7位地址) | SCL | SDA | 示例代码 |
|
||||
| ------- | ------------ | ----------------- | ---- | ---- | ---------------------- |
|
||||
| ADS1115 | ADC | 0x48 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/ads1115) |
|
||||
| ADXL345 | 三轴加速度计 | 0x53 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/adxl345) |
|
||||
| ADS1115 | ADC | 0x48 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/ads1115) |
|
||||
| ADXL345 | 三轴加速度计 | 0x53 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/adxl345) |
|
||||
|
||||
## 资源下载
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ mic.deinit()
|
||||
|
||||
#### SK9822 驱动代码
|
||||
|
||||
仅供参考用,来源:[github](https://github.com/sipeed/MaixPy/blob/master/components/kendryte_sdk/src/sipeed_sk9822.c) ;需要分析代码的话建议复制代码到电脑本地编辑器中查看。
|
||||
仅供参考用,来源:[github](https://github.com/sipeed/MaixPy-v1blob/master/components/kendryte_sdk/src/sipeed_sk9822.c) ;需要分析代码的话建议复制代码到电脑本地编辑器中查看。
|
||||
|
||||
<details>
|
||||
<summary>sipeed_sk9822.c</summary>
|
||||
@@ -402,7 +402,7 @@ void sipeed_init_mic_array_led(void)
|
||||
|
||||
#### Micarray 代码
|
||||
|
||||
仅供参考用,来源:[github](https://github.com/sipeed/MaixPy/blob/master/components/micropython/port/src/Maix/Maix_mic_array.c);需要分析代码的话建议复制代码到电脑本地编辑器中查看。
|
||||
仅供参考用,来源:[github](https://github.com/sipeed/MaixPy-v1blob/master/components/micropython/port/src/Maix/Maix_mic_array.c);需要分析代码的话建议复制代码到电脑本地编辑器中查看。
|
||||
|
||||
## 更多拓展用法
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ desc: maixpy MaixPy 开发板上电
|
||||
|
||||
## 检查固件版本
|
||||
|
||||
使用**串口终端**打开串口,然后复位,看输出的版本信息,与[github](https://github.com/sipeed/MaixPy/releases) 或者 [master 分支](http://dl.sipeed.com/MAIX/MaixPy/release/master/) 的固件版本对比,根据当前版本情况考虑升级到最新版本
|
||||
使用**串口终端**打开串口,然后复位,看输出的版本信息,与[github](https://github.com/sipeed/MaixPy-v1releases) 或者 [master 分支](http://dl.sipeed.com/MAIX/MaixPy/release/master/) 的固件版本对比,根据当前版本情况考虑升级到最新版本
|
||||
|
||||
比如:
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ desc: maixpy Introduction to MaixPy documentation
|
||||
<tr>
|
||||
<td><strong>MaixPy</strong> demo repository</td>
|
||||
<td><span class="limit_width">github:</span> <span class=""><a
|
||||
href="https://github.com/sipeed/MaixPy_scripts"><strong>github/maixpy_script
|
||||
href="https://github.com/sipeed/MaixPy-v1_scripts"><strong>github/maixpy_script
|
||||
</strong></a></span> <br><span class="limit_width">Domestic:</span><span class=""><a
|
||||
href="https://gitee.com/Sipeed/maixpy_scripts "
|
||||
rel="nofollow"><strong>gitee/maixpy_scripts</strong></a></span></td>
|
||||
@@ -175,14 +175,14 @@ To get these boards, you can visit the official website of Sipeed [www.sipeed.co
|
||||
If you want to participate in the development of MaixPy’s built-in functions, you can download for development, and welcome everyone to submit a PR
|
||||
|
||||
|
||||
This project is mainly maintained by ©<a href="https://www.sipeed.com" style="color: #f14c42">Sipeed</a> Co.,Ltd., and accepts contributions from the open source community, For specific contributions, see [Contributor List](https://github.com/sipeed/MaixPy/graphs/contributors)
|
||||
This project is mainly maintained by ©<a href="https://www.sipeed.com" style="color: #f14c42">Sipeed</a> Co.,Ltd., and accepts contributions from the open source community, For specific contributions, see [Contributor List](https://github.com/sipeed/MaixPy-v1graphs/contributors)
|
||||
|
||||
|
||||
## Feedback
|
||||
|
||||
For questions about this document or function or source code, you are also welcome to submit an issue:
|
||||
|
||||
* [Feedback](https://github.com/sipeed/MaixPy/issues)
|
||||
* [Feedback](https://github.com/sipeed/MaixPy-v1issues)
|
||||
|
||||
|
||||
## communicate with
|
||||
@@ -201,7 +201,7 @@ The following communication methods provide assistance:
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>issue(recommend)</td>
|
||||
<td><a href="https://github.com/sipeed/MaixPy/issues">https://github.com/sipeed/MaixPy/issues</a></td>
|
||||
<td><a href="https://github.com/sipeed/MaixPy-v1issues">https://github.com/sipeed/MaixPy-v1issues</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BBS</td>
|
||||
|
||||
@@ -68,4 +68,4 @@ amp = FFT.amplitude(FFT_res)
|
||||
|
||||
Collect sound and perform FFT calculation, and display the calculated data as a histogram on the screen
|
||||
|
||||
Example code: https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py
|
||||
Example code: https://github.com/sipeed/MaixPy-v1_scripts/blob/master/hardware/demo_fft_spectrum.py
|
||||
|
||||
@@ -24,7 +24,7 @@ KPU is a general-purpose neural network processor, which can realize convolution
|
||||
|
||||
Model download address: [http://dl.sipeed.com/MAIX/MaixPy/model](http://dl.sipeed.com/MAIX/MaixPy/model), download `face_model_at_0x300000.kfpkg`
|
||||
|
||||
Complete example: [face_find](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/face_find)
|
||||
Complete example: [face_find](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/face_find)
|
||||
|
||||
### Running feature map
|
||||
|
||||
@@ -95,7 +95,7 @@ The `offset` and `file_path` parameters can only choose one of the two, no keywo
|
||||
|
||||
##### Return
|
||||
|
||||
If it is loaded correctly, the return value will be returned, otherwise an error will be thrown. Please see the error message thrown. In addition, please refer to [here](https://github.com/sipeed/MaixPy/blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
If it is loaded correctly, the return value will be returned, otherwise an error will be thrown. Please see the error message thrown. In addition, please refer to [here](https://github.com/sipeed/MaixPy-v1blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
|
||||
If the error code is found to be less than the value of `2000`, the firmware version is too low, and the firmware version needs to be updated
|
||||
|
||||
@@ -111,7 +111,7 @@ kpu.load_flash(model_addr, is_dual_buf, batch_size, spi_speed)
|
||||
|
||||
#### Parameters
|
||||
|
||||
* `model_addr`: Flash addr's preprocessed model burned to the offset address in flash. Note that the model file [description](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/load_big_model/README_ZH.md) needs to be preprocessed here.
|
||||
* `model_addr`: Flash addr's preprocessed model burned to the offset address in flash. Note that the model file [description](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/load_big_model/README_ZH.md) needs to be preprocessed here.
|
||||
* `is_dual_buf`: `0`, single buffer loading, using less RAM and slower speed to dynamically load the model file; `1`, enabling double buffer loading, requires larger RAM, and running speed is relatively fast .
|
||||
* `batch_size`: When setting `is_dual_buf` to 1, load batch_size needs to be set. The recommended value is `0x4000~0x10000`, which can test the best value of the model. If `is_dual_buf` is 0 then set to 0
|
||||
* `spi_speed`: When using SPI flash to load the model file, we will temporarily set the flash to high-speed mode and set the required spi clock frequency. The value should be <= 80000000 (the actual frequency, the set value may not be equal to the actual frequency.)
|
||||
@@ -319,7 +319,7 @@ After `load`, you need to call this function to manually set the output layer sh
|
||||
|
||||
##### Return
|
||||
|
||||
* `success`: Whether the setting is successful, if not, please pay attention to the output prompt information, refer to [error code](https://github.com/sipeed/MaixPy/blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
* `success`: Whether the setting is successful, if not, please pay attention to the output prompt information, refer to [error code](https://github.com/sipeed/MaixPy-v1blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
|
||||
|
||||
### memtest
|
||||
@@ -334,7 +334,7 @@ KPU.memtest()
|
||||
```
|
||||
### face_encode
|
||||
|
||||
Quantify the feature map returned by `forward`. For more details, please see: [kpu issue](https://github.com/sipeed/MaixPy/issues/342)
|
||||
Quantify the feature map returned by `forward`. For more details, please see: [kpu issue](https://github.com/sipeed/MaixPy-v1issues/342)
|
||||
|
||||
```python
|
||||
feature = kpu.face_encode(fmap[:])
|
||||
|
||||
@@ -37,27 +37,27 @@ print(board_info.BOOT_KEY, board_info.BOOT_KEY == 16)
|
||||
|
||||
### Maix Bit
|
||||
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_bit.py)
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_bit.py)
|
||||
|
||||
### Maix Dock
|
||||
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_dock.py)
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_dock.py)
|
||||
|
||||
### Maix Go
|
||||
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_go.py)
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_go.py)
|
||||
|
||||
### Maix Duino
|
||||
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_duino.py)
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_duino.py)
|
||||
|
||||
### Maix Cube
|
||||
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_cube.py)
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_cube.py)
|
||||
|
||||
### Maix Amigo
|
||||
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_amigo.py)
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_amigo.py)
|
||||
|
||||
### Maix Nano
|
||||
|
||||
@@ -65,7 +65,7 @@ print(board_info.BOOT_KEY, board_info.BOOT_KEY == 16)
|
||||
|
||||
### Create your own hardware
|
||||
|
||||
You can use this interface code to adapt to your hardware. For the configuration method, please refer to [MaixPy_scripts/board](https://github.com/sipeed/MaixPy_scripts/tree/master/board) There is a configuration file for your reference.
|
||||
You can use this interface code to adapt to your hardware. For the configuration method, please refer to [MaixPy_scripts/board](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board) There is a configuration file for your reference.
|
||||
|
||||
### How to use board
|
||||
|
||||
|
||||
@@ -49,4 +49,4 @@ Get the sensor resolution width, which can only be called by the instance
|
||||
|
||||
## Examples
|
||||
|
||||
[heimann_HTPA_32x32](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/heimann_HTPA_32x32)
|
||||
[heimann_HTPA_32x32](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/heimann_HTPA_32x32)
|
||||
|
||||
@@ -103,4 +103,4 @@ while True:
|
||||
a=class_ws2812.display()
|
||||
```
|
||||
|
||||
> For the above example, see [`MaixPy_scripts`](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/grove/ws2812)
|
||||
> For the above example, see [`MaixPy_scripts`](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/grove/ws2812)
|
||||
|
||||
@@ -13,7 +13,7 @@ To use `WiFi` please make sure that the antenna is connected
|
||||
On some development boards, a network card module that uses `AT` to interact, such as `esp8285`, is connected to `k210` through a serial port
|
||||
|
||||
Pin `8` is the enable pin. You can create a `GPIO` object to control its high and low levels to achieve enable and disable, or you can use it to reset (low first and then high), and you need to wait for a while after reset Time to operate,
|
||||
You can view the routine [network_espat.py](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/network/network_espat.py)
|
||||
You can view the routine [network_espat.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/network/network_espat.py)
|
||||
|
||||
### [esp32](##network.ESP32_SPI(cs,rst,rdy,mosi,miso,sclk))
|
||||
Currently there is an `esp32` module in the `MaixDuino` development board which is connected to `k210` through `spi`
|
||||
@@ -222,7 +222,7 @@ The encryption method of the hotspot is `WPA_WPA2_PSK`
|
||||
## Routine
|
||||
|
||||
|
||||
Refer to [routines in the network directory](https://github.com/sipeed/MaixPy_scripts/tree/master/network)
|
||||
Refer to [routines in the network directory](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/network)
|
||||
|
||||
|
||||
## network.ESP32_SPI(cs,rst,rdy,mosi,miso,sclk)
|
||||
@@ -258,7 +258,7 @@ no
|
||||
|
||||
#### Routine
|
||||
|
||||
[demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
[demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
|
||||
|
||||
## network.WIZNET5K(spi, cs)
|
||||
@@ -330,4 +330,4 @@ no
|
||||
|
||||
#### Routine
|
||||
|
||||
[network_wiznet5k.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_wiznet5k.py)
|
||||
[network_wiznet5k.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_wiznet5k.py)
|
||||
|
||||
@@ -18,7 +18,7 @@ Initialize the `NES` emulator
|
||||
#### Parameters
|
||||
|
||||
* `tc_type`: remote control type, keyboard (`nes.KEYBOARD`) (note that the serial port communicates with the computer, not directly connecting the USB keyboard to the development board) or handle (`nes.JOYSTICK`).
|
||||
> It is recommended to use the `PS2` handle, the experience will be better, the keyboard may not be able to press multiple keys at the same time when inputting through the serial tool, of course, you can also write a script on the PC to forward the key value to solve the problem (go [here] (https ://github.com/sipeed/MaixPy_scripts/tree/master/multimedia/nes) Looking for it?)
|
||||
> It is recommended to use the `PS2` handle, the experience will be better, the keyboard may not be able to press multiple keys at the same time when inputting through the serial tool, of course, you can also write a script on the PC to forward the key value to solve the problem (go [here] (https ://github.com/sipeed/MaixPy-v1_scripts/tree/master/multimedia/nes) Looking for it?)
|
||||
|
||||
* `cs`: If you use the `PS2` handle of the `SPI` interface, pass in the `cs` peripheral number (note that it is not a pin number, you need to map the pin first)
|
||||
* `mosi`: If you use the `PS2` handle of the `SPI` interface, pass in the `mosi` peripheral number (note that it is not a pin number, you need to map the pin first)
|
||||
|
||||
@@ -14,7 +14,7 @@ The latest modern hash algorithm of the SHA256-SHA2 series. It is suitable for p
|
||||
|
||||
There is hardware acceleration in K210, not software calculation
|
||||
|
||||
[Example](https://github.com/sipeed/MaixPy_scripts/blob/master/basic/demo_sha256.py):
|
||||
[Example](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/basic/demo_sha256.py):
|
||||
```python
|
||||
a = bytes([0]*65)
|
||||
b = hashlib.sha256(a)
|
||||
|
||||
@@ -9,7 +9,7 @@ This article is an open source project development document written to help some
|
||||
|
||||
## Get maixpy open source project
|
||||
|
||||
Please prepare the linux system environment (WSL on Windows is also possible), hook up the XXX proxy, enter `git clone https://github.com/sipeed/MaixPy` to pull the MaixPy warehouse code and submodules, and make sure to read the catalog after you get it [Build.md](https://github.com/sipeed/MaixPy/blob/master/build.md) document under.
|
||||
Please prepare the linux system environment (WSL on Windows is also possible), hook up the XXX proxy, enter `git clone https://github.com/sipeed/MaixPy` to pull the MaixPy warehouse code and submodules, and make sure to read the catalog after you get it [Build.md](https://github.com/sipeed/MaixPy-v1blob/master/build.md) document under.
|
||||
|
||||
> Students who do not have an agent can use the github mirror station list (`https://github.com/rc1844/fastgithub`) to accelerate the pull of the maixpy repository. Please do not use gitee to pull the maixpy repository, which will drop the submodule repository.
|
||||
|
||||
@@ -57,7 +57,7 @@ juwan@juwan-N85-N870HL:~/Desktop/maixpy$ git submodule status
|
||||
|
||||
> This section assumes that you do not have any experience in building cross-compilation chains.
|
||||
|
||||
First press [build.md](https://github.com/sipeed/MaixPy/blob/master/build.md) to perform various operations in order. If you don’t speak English, you can open a translator.
|
||||
First press [build.md](https://github.com/sipeed/MaixPy-v1blob/master/build.md) to perform various operations in order. If you don’t speak English, you can open a translator.
|
||||
|
||||
The steps are as follows:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ desc: maixpy packaging file system
|
||||
|
||||
Pack several files on the PC into a SPIFFS file system image, use kflash to burn to a specific address in flash, these files can be read directly on the development board (MaixPy)
|
||||
|
||||
For details, please see the instructions: [pack SPIFFS for MaixPy](https://github.com/sipeed/MaixPy/tree/master/tools/spiffs)
|
||||
For details, please see the instructions: [pack SPIFFS for MaixPy](https://github.com/sipeed/MaixPy-v1tree/master/tools/spiffs)
|
||||
|
||||
Operation example GIF:
|
||||

|
||||
|
||||
@@ -138,7 +138,7 @@ C language code running model:
|
||||
MaixPy running model:
|
||||
* When running MaixPy (minimum version), a model of about 4MB can be loaded. If you don’t use the camera and LCD, you can load up to 5MiB of models (because the buffer of the camera and LCD takes up a lot of memory, but the actual application is not very meaningful)
|
||||
* When running MaixPy (full version), it can load a model of about 2MiB
|
||||
* In addition, it also supports real-time loading of models from `Flash`. In theory, as long as the single-layer memory does not exceed 2MiB, the overall model can be infinitely large, but at the expense of computing speed. For usage, see [here](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/load_big_model). If you are interested in the principle and implementation, you can see [here](https://neucrack.com/p/313)
|
||||
* In addition, it also supports real-time loading of models from `Flash`. In theory, as long as the single-layer memory does not exceed 2MiB, the overall model can be infinitely large, but at the expense of computing speed. For usage, see [here](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/load_big_model). If you are interested in the principle and implementation, you can see [here](https://neucrack.com/p/313)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Can recognize 1000 objects
|
||||
* Use `minimum` version firmware
|
||||
* [Download model file](https://dl.sipeed.com/MAIX/MaixPy/model), download `mobilenet_0x300000.kfpkg`
|
||||
* Use `kflash_gui` to burn this file to `Flash`, the default address is `0x300000`
|
||||
* Save the file [labels.txt](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/mobilenet_1000_class/labels.txt) ([Alternate Link](https://en.bbs.sipeed.com /uploads/default/original/1X/d41ad9dfbe01f228abe726986fbf1baf4e288f2e.zip)) to the file system, see the introductory tutorial (use your ingenuity) for specific methods (reference answer: because there is too much content, if you use the REPL to copy and paste directly, data may be wrong. So use a tool to transfer. The easiest way is to put it on the SD card; if you want to put it in `/flash`, the minimum may not support IDE, you can use `upyloader` to send files)
|
||||
* Save the file [labels.txt](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/mobilenet_1000_class/labels.txt) ([Alternate Link](https://en.bbs.sipeed.com /uploads/default/original/1X/d41ad9dfbe01f228abe726986fbf1baf4e288f2e.zip)) to the file system, see the introductory tutorial (use your ingenuity) for specific methods (reference answer: because there is too much content, if you use the REPL to copy and paste directly, data may be wrong. So use a tool to transfer. The easiest way is to put it on the SD card; if you want to put it in `/flash`, the minimum may not support IDE, you can use `upyloader` to send files)
|
||||
* Because this model has `4.2MiB`, which is relatively large, so the firmware of `minimum` is used, and the memory used by `GC` is not too large. You can set a smaller size in the following way and leave the memory for the model
|
||||
|
||||
```python
|
||||
@@ -65,4 +65,4 @@ print(fps)
|
||||
```
|
||||
|
||||
|
||||
See the complete example [maixpy_scripts](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/mobilenet_1000_class)
|
||||
See the complete example [maixpy_scripts](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/mobilenet_1000_class)
|
||||
|
||||
@@ -35,6 +35,6 @@ Then enter the image data and run the model
|
||||
code = kpu.run_yolo2(task, img)
|
||||
```
|
||||
|
||||
To get the result, see [here](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/face_find/demo_find_face.py) for the complete example
|
||||
To get the result, see [here](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/face_find/demo_find_face.py) for the complete example
|
||||
|
||||
API documentation see [Maix.KPU](/api_reference/Maix/kpu.md)
|
||||
|
||||
@@ -16,7 +16,7 @@ Effect video: [youtube](https://www.youtube.com/embed/hS_mcGptXeo) or [bilibili]
|
||||
|
||||
* Download the model from [maixhub](https://www.maixhub.com/index/index/detail/id/235.html) and follow the instructions to obtain the model `smodel`, which is the encrypted version of `kmodel`
|
||||
* Download the model to the development board according to the method of the introductory tutorial
|
||||
* Run script [script](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/face_recognization/demo_face_recognization.py)
|
||||
* Run script [script](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/face_recognization/demo_face_recognization.py)
|
||||
|
||||
|
||||
## Program understanding
|
||||
|
||||
@@ -14,7 +14,7 @@ Demo video: [youtube](https://www.youtube.com/watch?v=aLW1YQrT-2A) or [bilibili]
|
||||
* [Here](https://dl.sipeed.com/MAIX/MaixPy/release/master/maixpy_v0.5.0_33_gfcd6d8a) Download version >= v0.5.0-33 firmware
|
||||
* [Download kmodel](https://maixhub.com/model/zoo/61)
|
||||
* Use [kflash_gui](https://github.com/sipeed/kflash_gui) to download firmware and model
|
||||
* Run [Sample script](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier.py)
|
||||
* Run [Sample script](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier.py)
|
||||
> If use the lite version kmodel, you should add `fea_len` arg as `512` when create classifier object, when use the bigger kmodel this param is not needed:
|
||||
```python
|
||||
classifier = kpu.classifier(model, class_num, sample_num, fea_len=512)
|
||||
@@ -32,4 +32,4 @@ Then start learning objects after running
|
||||
## Save/load learned features
|
||||
|
||||
* Use `classifier.save(path)` to save the learned features to the `path` file
|
||||
* Use `KPU.classifier.load()` to load features, refer to [self_learning_classifier_load.py](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier_load.py) file
|
||||
* Use `KPU.classifier.load()` to load features, refer to [self_learning_classifier_load.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier_load.py) file
|
||||
|
||||
@@ -9,7 +9,7 @@ Detailed API reference: [audio API](./../../api_reference/media/audio.md)
|
||||
|
||||
## Instructions
|
||||
|
||||
> MaixAmigo, MaixCube needs [Initialize ES8374 audio decoder chip](https://github.com/sipeed/MaixPy_scripts/blob/master/modules/others/es8374/es8374.py) before using audio
|
||||
> MaixAmigo, MaixCube needs [Initialize ES8374 audio decoder chip](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/modules/others/es8374/es8374.py) before using audio
|
||||
|
||||
* Create audio object
|
||||
|
||||
@@ -67,7 +67,7 @@ player.finish()
|
||||
|
||||
## Routine
|
||||
|
||||
> Test audio address: [6.wav](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/6.wav)
|
||||
> Test audio address: [6.wav](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/audio/6.wav)
|
||||
|
||||
* Play wav files: [play_wav](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/play_wav.py)
|
||||
* Record audio as a wav file and save: [record_wav](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/record_wav.py)
|
||||
* Play wav files: [play_wav](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/audio/play_wav.py)
|
||||
* Record audio as a wav file and save: [record_wav](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/audio/record_wav.py)
|
||||
|
||||
@@ -9,7 +9,7 @@ Detailed API reference: [video API](./../../api_reference/media/video.md)
|
||||
|
||||
## Instructions
|
||||
|
||||
> MaixAmigo, MaixCube needs [Initialize ES8374 audio decoder chip](https://github.com/sipeed/MaixPy_scripts/blob/master/modules/others/es8374/es8374.py) before using audio
|
||||
> MaixAmigo, MaixCube needs [Initialize ES8374 audio decoder chip](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/modules/others/es8374/es8374.py) before using audio
|
||||
|
||||
* Create a video object, set the volume
|
||||
|
||||
@@ -61,7 +61,7 @@ v.__del__()
|
||||
|
||||
> The avi file address in the test case: [badapple.avi](https://api.dl.sipeed.com/shareURL/MAIX/MaixPy/assets)
|
||||
|
||||
* Play avi files: [video_play](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/demo_video_play.py)
|
||||
* Use the camera to record the video as an avi file and save it: [record_video](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/demo_video_record.py)
|
||||
* Sequentially capture and display each frame of avi video: [video_capture](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/demo_video_capture.py)
|
||||
* Amigo play avi files: [amigo_play_video](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/amigo_play_video.py)
|
||||
* Play avi files: [video_play](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/demo_video_play.py)
|
||||
* Use the camera to record the video as an avi file and save it: [record_video](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/demo_video_record.py)
|
||||
* Sequentially capture and display each frame of avi video: [video_capture](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/demo_video_capture.py)
|
||||
* Amigo play avi files: [amigo_play_video](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/amigo_play_video.py)
|
||||
|
||||
@@ -121,7 +121,7 @@ def enable_espat():
|
||||
|
||||
#### Maixduino + ESP32
|
||||
|
||||
Use Maixduino's esp32 to connect to the network and upload the library [network_esp32.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_esp32.py).
|
||||
Use Maixduino's esp32 to connect to the network and upload the library [network_esp32.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_esp32.py).
|
||||
|
||||
```python
|
||||
# This file is part of MaixPY
|
||||
@@ -256,7 +256,7 @@ if __name__ == "__main__":
|
||||
|
||||
#### AT firmware of ESP82XX
|
||||
|
||||
Use the AT firmware of ESP8266/85 to connect to the Internet and upload the library [network_espat.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_espat.py)
|
||||
Use the AT firmware of ESP8266/85 to connect to the Internet and upload the library [network_espat.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_espat.py)
|
||||
|
||||
> `board_info` is related to the board, and different board configurations are different. [Manual configuration](../../api_reference/builtin_py/board_info.md) is required before use.
|
||||
|
||||
@@ -408,7 +408,7 @@ if __name__ == "__main__":
|
||||
|
||||
#### WIZNET5K by Spmod
|
||||
|
||||
Use Spmod's WIZNET5K network card to connect to the Internet and upload the library [network_wiznet5k.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_wiznet5k.py)
|
||||
Use Spmod's WIZNET5K network card to connect to the Internet and upload the library [network_wiznet5k.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_wiznet5k.py)
|
||||
|
||||
> vamoosebbf 2020-12-10 edit
|
||||
|
||||
|
||||
@@ -19,17 +19,17 @@ Please confirm the address and port before using the following client code.
|
||||
|
||||
There are the following types of typical client code:
|
||||
|
||||
- TCP client [demo_socket_tcp_client.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_tcp_client.py)
|
||||
- UDP client [demo_socket_udp_client.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_udp_client.py)
|
||||
- TCP video transmission client [demo_socket_pic_client.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_pic_client.py)
|
||||
- TCP client [demo_socket_tcp_client.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_tcp_client.py)
|
||||
- UDP client [demo_socket_udp_client.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_udp_client.py)
|
||||
- TCP video transmission client [demo_socket_pic_client.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_pic_client.py)
|
||||
|
||||
### Prepare debugging tools (server code)
|
||||
|
||||
Commonly used in network debugging assistants, or running the provided Python3 server script on your computer.
|
||||
|
||||
- TCP server [demo_socket_tcp_server.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_tcp_server.py)
|
||||
- UDP server [demo_socket_udp_server.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_udp_server.py)
|
||||
- TCP image transmission server [demo_socket_pic_server.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_pic_server.py)
|
||||
- TCP server [demo_socket_tcp_server.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_tcp_server.py)
|
||||
- UDP server [demo_socket_udp_server.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_udp_server.py)
|
||||
- TCP image transmission server [demo_socket_pic_server.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_pic_server.py)
|
||||
|
||||
First start a network service with a known IP address and port, and wait for MaixPy as a client to send data to the server.
|
||||
|
||||
@@ -96,7 +96,7 @@ The following are special function codes.
|
||||
|
||||
#### esp32's ping
|
||||
|
||||
- [demo_esp32_ping.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_ping.py)
|
||||
- [demo_esp32_ping.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_ping.py)
|
||||
|
||||
```shell
|
||||
ESP32_SPI firmware version: 1.4.0
|
||||
@@ -111,7 +111,7 @@ The following are special function codes.
|
||||
|
||||
#### ADC of esp32
|
||||
|
||||
- [demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
- [demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
|
||||
```shell
|
||||
MicroPython v0.5.1-136-g039f72b6c-dirty on 2020-11-18; Sipeed_M1 with kendryte-k210
|
||||
@@ -134,19 +134,19 @@ The following are special function codes.
|
||||
|
||||
#### HTTP support
|
||||
|
||||
- [demo_http_get_jpg.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_http_get_jpg.py)
|
||||
- [demo_http_get_jpg.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_http_get_jpg.py)
|
||||
|
||||
#### https support
|
||||
|
||||
This function is not compiled by default, but what is provided is the use of HTTP, and HTTP and HTTPS are only the difference of the path url. Note that the IP resolution of https depends on the firmware of the network card and is not completed on the K210.
|
||||
|
||||
- [demo_socket_https.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_https.py)
|
||||
- [demo_socket_https.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_https.py)
|
||||
|
||||
#### scan WIFI AP hotspot of esp32, 82XX
|
||||
|
||||
- [demo_esp32_ap_scan.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_ap_scan.py)
|
||||
- [demo_esp32_ap_scan.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_ap_scan.py)
|
||||
|
||||
- [demo_espat_ap_scan.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_espat_ap_scan.py)
|
||||
- [demo_espat_ap_scan.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_espat_ap_scan.py)
|
||||
```python
|
||||
'''
|
||||
>>>
|
||||
@@ -173,12 +173,12 @@ This function is not compiled by default, but what is provided is the use of HTT
|
||||
|
||||
This is the code provided by the official repository of micropython. If it is for commercial use, please configure the socket as non-blocking and add the MQTT keep-alive protocol.
|
||||
|
||||
- [demo_socket_mqtt.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_mqtt.py)
|
||||
- [demo_socket_mqtt.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_mqtt.py)
|
||||
|
||||
#### Update the AT firmware of ESP82XX
|
||||
|
||||
> This is a function provided for the AT firmware, so you can understand it naturally.
|
||||
|
||||
- [demo_espat_ap_test.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_espat_ap_test.py)
|
||||
- [demo_espat_ap_test.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_espat_ap_test.py)
|
||||
|
||||
- [espat_upgrade.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/espat_upgrade.py)
|
||||
- [espat_upgrade.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/espat_upgrade.py)
|
||||
|
||||
@@ -13,4 +13,4 @@ Refer to the official document: [lvgl blog page](https://blog.littlevgl.com/2019
|
||||
|
||||
## Routine
|
||||
|
||||
Reference [MaixPy_Scripts of github](https://github.com/sipeed/MaixPy_scripts/tree/master/multimedia/gui/lvgl)
|
||||
Reference [MaixPy_Scripts of github](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/multimedia/gui/lvgl)
|
||||
|
||||
@@ -11,4 +11,4 @@ The tutorial is written on the basis that I have fully mastered the content of t
|
||||
|
||||
|
||||
This tutorial mainly introduces how to use the functions included in MaixPy in modules,
|
||||
When watching the tutorial, you may need to learn together with API documentation and routine warehouse [MaixPy_scripts](https://github.com/sipeed/maixpy_scripts)
|
||||
When watching the tutorial, you may need to learn together with API documentation and routine warehouse [MaixPy_scripts](https://github.com/sipeed/MaixPy-v1_scripts)
|
||||
|
||||
@@ -27,7 +27,7 @@ For related API explanation, please refer to [FFT-API](../../api_reference/Maix/
|
||||
|
||||
## Routine
|
||||
|
||||
Collect sound and perform FFT calculation, and display the calculated data as a histogram on the screen: [demo_fft_spectrum](https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py)
|
||||
Collect sound and perform FFT calculation, and display the calculated data as a histogram on the screen: [demo_fft_spectrum](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/hardware/demo_fft_spectrum.py)
|
||||
|
||||
effect:
|
||||
<iframe width="600" height="350" src="//player.bilibili.com/player.html?aid=44617696&cid=78104545&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
|
||||
|
||||
@@ -43,7 +43,7 @@ for i in range(hist_x_num):
|
||||
|
||||
Acquire audio data in real time and draw it as an FFT waterfall chart
|
||||
|
||||
[demo_fft_waterfall.py](https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_waterfall.py)
|
||||
[demo_fft_waterfall.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/hardware/demo_fft_waterfall.py)
|
||||
|
||||
effect:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ This is a speech recognition module based on an acoustic model. When the user se
|
||||
|
||||
> After TODO, it will be stored in a unified link to the download station.
|
||||
|
||||
Get the acoustic model [maix_asr_2900k_0x500000](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/maix_asr_2900k_0x500000.kmodel) from here, and burn it to 0x500000 address.
|
||||
Get the acoustic model [maix_asr_2900k_0x500000](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/maix_asr_2900k_0x500000.kmodel) from here, and burn it to 0x500000 address.
|
||||
|
||||
> Load the module without burning the model, it will core dump, don't ask how to report the error.
|
||||
|
||||
@@ -132,4 +132,4 @@ We can see that the following words are defined in the code:
|
||||
|
||||
That is, you can complete the recognition by saying [ni-hao], [hao-de], and [xiao-ai] into the microphone within 6 seconds. The configuration items are two fields, and the length of the first field does not exceed six.Group Pinyin, the second field indicates the lowest threshold of recognition (matching threshold). If it is higher than this value, it will be printed, and if it is lower than this value, it will be discarded.
|
||||
|
||||
At the beginning of the test, you can speak a little louder, see [Demo Video](https://www.bilibili.com/video/BV1C5411L7JC/) for specific effects, complete example: [test_maix_asr.py](https://github.com/sipeed/MaixPy_scripts/blob/d1d95a4d2fbe4c4b87d683c5fb79fda1fe3f9aae/multimedia/speech_recognizer/test_maix_asr.py)
|
||||
At the beginning of the test, you can speak a little louder, see [Demo Video](https://www.bilibili.com/video/BV1C5411L7JC/) for specific effects, complete example: [test_maix_asr.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/d1d95a4d2fbe4c4b87d683c5fb79fda1fe3f9aae/multimedia/speech_recognizer/test_maix_asr.py)
|
||||
|
||||
@@ -31,8 +31,8 @@ Current hardware support level: Maix BIT / DOCK / DUINO / GO.
|
||||
|
||||
### Sample code out of the box
|
||||
|
||||
-Use the test case of maixduino/maixbit [isolated_word.py](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/isolated_word.py), please read the code for the usage method, please pay attention to the microphone of the hardware Configuration and channel configuration.
|
||||
-Maix DOCK can directly use the sample code [demo_isolated_word_on_maixdock.py](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/demo_isolated_word_on_maixdock.py), just follow the on-screen instructions to speak, see [ Test video](https://www.bilibili.com/video/BV1oz4y1C7yE?from=search&seid=17464946072274851468).
|
||||
-Use the test case of maixduino/maixbit [isolated_word.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/isolated_word.py), please read the code for the usage method, please pay attention to the microphone of the hardware Configuration and channel configuration.
|
||||
-Maix DOCK can directly use the sample code [demo_isolated_word_on_maixdock.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/demo_isolated_word_on_maixdock.py), just follow the on-screen instructions to speak, see [ Test video](https://www.bilibili.com/video/BV1oz4y1C7yE?from=search&seid=17464946072274851468).
|
||||
|
||||
### Module call flow
|
||||
|
||||
|
||||
@@ -48,14 +48,14 @@ MaixAmigo onboard I2C sensor/IC
|
||||
|
||||
| IC | Device id | I2C address (7-bit address) | MaixPy read address | Sample code |
|
||||
| ------ | --------- | -------------------------- | ------------------- | ----------- |
|
||||
| ES8374(Audio codec) | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301 (Triple Axis Accelerometer)| 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173 (Power management IC)| 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
| ES8374(Audio codec) | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301 (Triple Axis Accelerometer)| 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173 (Power management IC)| 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
|
||||
|
||||
## Get started
|
||||
|
||||
MaixAmigo also uses MaixPy to get started with AIoT. Due to the particularity of the hardware, please use MaixPy after [Configure amigo hardware](https://github.com/sipeed/MaixPy_scripts/blob/master/board/config_maix_amigo.py)(If not configured, the photos taken by the camera will be noisy) .
|
||||
MaixAmigo also uses MaixPy to get started with AIoT. Due to the particularity of the hardware, please use MaixPy after [Configure amigo hardware](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/board/config_maix_amigo.py)(If not configured, the photos taken by the camera will be noisy) .
|
||||
|
||||
Before development, we need to understand and prepare related tools to reduce the pitfalls we have to follow because of insufficient preparation.
|
||||
|
||||
@@ -80,7 +80,7 @@ Software preparation:
|
||||
- USB driver: [Click me](https://dl.sipeed.com/MAIX/tools/driver)
|
||||
- Kflash_gui: [https://dl.sipeed.com/MAIX/tools/kflash_gui](https://dl.sipeed.com/MAIX/tools/kflash_gui)
|
||||
- MaixPy IDE: [https://dl.sipeed.com/MAIX/MaixPy/ide/_/v0.2.5](https://dl.sipeed.com/MAIX/MaixPy/ide/_/v0.2.5)
|
||||
- Routine library: [https://github.com/sipeed/MaixPy_scripts](https://github.com/sipeed/MaixPy_scripts)
|
||||
- Routine library: [https://github.com/sipeed/MaixPy-v1_scripts](https://github.com/sipeed/MaixPy-v1_scripts)
|
||||
|
||||
### install driver
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@ MaixCube onboard I2C sensor/IC
|
||||
|
||||
| IC | Device id | I2C address (7-bit address) | MaixPy read address | Sample code |
|
||||
| ------ | --------- | -------------------------- | ------------------- | ----------- |
|
||||
| ES8374 | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301 | 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173 | 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
| ES8374 | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301 | 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173 | 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
|
||||
|
||||
## Get started
|
||||
@@ -80,7 +80,7 @@ Software preparation:
|
||||
- USB driver: [Click me](https://dl.sipeed.com/MAIX/tools/driver)
|
||||
- Kflash_gui: [https://dl.sipeed.com/MAIX/tools/kflash_gui](https://dl.sipeed.com/MAIX/tools/kflash_gui)
|
||||
- MaixPy IDE: [https://dl.sipeed.com/MAIX/MaixPy/ide/_/v0.2.5](https://dl.sipeed.com/MAIX/MaixPy/ide/_/v0.2.5)
|
||||
- Routine library: [https://github.com/sipeed/MaixPy_scripts](https://github.com/sipeed/MaixPy_scripts)
|
||||
- Routine library: [https://github.com/sipeed/MaixPy-v1_scripts](https://github.com/sipeed/MaixPy-v1_scripts)
|
||||
|
||||
### install driver
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ The pre-compiled firmware may not meet specific usage scenarios. If you need to
|
||||
|
||||
## Native environment compilation
|
||||
|
||||
For the compilation method, please refer to the compilation instructions under the source code [build.md](https://github.com/sipeed/MaixPy/blob/master/build.md)
|
||||
For the compilation method, please refer to the compilation instructions under the source code [build.md](https://github.com/sipeed/MaixPy-v1blob/master/build.md)
|
||||
|
||||
## Use docker environment to compile
|
||||
|
||||
@@ -17,4 +17,4 @@ Docker can simplify development environment installation
|
||||
> If you have never used docker, please learn about docker by yourself,
|
||||
> If you haven't studied before, you can think of it as similar to a virtual machine, that is, a virtual machine with a compilation environment has been prepared for you, and you can download and run it directly to compile the source code
|
||||
|
||||
The docker image has already packaged the environment, just pull the image and run it to start compiling, refer to [Use Docker to compile the source code](https://github.com/sipeed/MaixPy/tree/master/tools/docker)
|
||||
The docker image has already packaged the environment, just pull the image and run it to start compiling, refer to [Use Docker to compile the source code](https://github.com/sipeed/MaixPy-v1tree/master/tools/docker)
|
||||
|
||||
@@ -27,22 +27,22 @@ This code can run on all MaixPy device, while its board_info.LED_R is not all th
|
||||
Copy the python code from the following links (like config_maix_bit.py), run it in MaixPy IDE, after this you have imported config.json of your downloaded hardware, this config.json will be stored on flash
|
||||
|
||||
1. Maix Bit
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_bit.py)
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_bit.py)
|
||||
|
||||
2. Maix Dock
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_dock.py)
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_dock.py)
|
||||
|
||||
3. Maix Go
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_go.py)
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_go.py)
|
||||
|
||||
4. Maix Duino
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_duino.py)
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_duino.py)
|
||||
|
||||
5. Maix Cube
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_cube.py)
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_cube.py)
|
||||
|
||||
6. Maix Amigo
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_amigo.py)
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_amigo.py)
|
||||
|
||||
7. Maix Nano
|
||||
> There is no peripheral on this hardware, so here is no config code about it.
|
||||
@@ -57,7 +57,7 @@ print(board_info.BOOT_KEY, board_info.BOOT_KEY == 16)
|
||||
|
||||
## Custome your own firmware
|
||||
|
||||
You can use this interface code to adapt your hardware, refer to [MaixPy_scripts/board](https://github.com/sipeed/MaixPy_scripts/tree/master/board) to see the reference configuration file to know configuration method.
|
||||
You can use this interface code to adapt your hardware, refer to [MaixPy_scripts/board](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board) to see the reference configuration file to know configuration method.
|
||||
|
||||
## board usage
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ The system will create the `boot.py` file and `main.py` in the `/flash` or `/sd`
|
||||
- boot.py is mainly used to configure the hardware and only needs to be configured once.
|
||||
- main.py can be used for the main running program.
|
||||
|
||||
The corresponding specific implementation [code here](https://github.com/sipeed/MaixPy/blob/972059491227ece63fbfc2cd0e78fe13ee78427d/components/micropython/port/src/maixpy_main.c#L586-L595), if you have any questions, just look at the source .
|
||||
The corresponding specific implementation [code here](https://github.com/sipeed/MaixPy-v1blob/972059491227ece63fbfc2cd0e78fe13ee78427d/components/micropython/port/src/maixpy_main.c#L586-L595), if you have any questions, just look at the source .
|
||||
|
||||
note:
|
||||
* The Micro SD card should be formatted as FAT (FAT32) file system
|
||||
|
||||
@@ -28,7 +28,7 @@ After power on, if it is a new factory development board, it may display a red b
|
||||
|
||||
## Check the firmware version
|
||||
|
||||
Use **Serial Terminal** to open the serial port, and then reset, see the output version information, and [github](https://github.com/sipeed/MaixPy/releases) or [master branch](http://dl. sipeed.com/MAIX/MaixPy/release/master/) firmware version comparison, consider upgrading to the latest version according to the current version
|
||||
Use **Serial Terminal** to open the serial port, and then reset, see the output version information, and [github](https://github.com/sipeed/MaixPy-v1releases) or [master branch](http://dl. sipeed.com/MAIX/MaixPy/release/master/) firmware version comparison, consider upgrading to the latest version according to the current version
|
||||
|
||||
such as:
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ Each commit has an independent `commit ID`, such as `d28cb7ac7db5ad61c0738df95d7
|
||||
Submodule, called `submodule` in English, means that other warehouses can be referenced in the warehouse, which is equivalent to a soft link. You don't need to put actual code in the warehouse, just put a link.
|
||||
The advantage of this is that multiple warehouses can be managed separately. For example, `Warehouse 1` references `Warehouse 2` as a submodule. If the code of `Warehouse 2` is updated, `Warehouse 1` can choose to continue to use the old version of `Warehouse 2` Code, you can also choose to use the latest code of `Warehouse 2`, just update the submodule link
|
||||
|
||||
For example, `MaixPy` uses `kendryte-standalone-sdk` as a submodule, see [here](https://github.com/sipeed/MaixPy/tree/master/components/kendryte_sdk)
|
||||
For example, `MaixPy` uses `kendryte-standalone-sdk` as a submodule, see [here](https://github.com/sipeed/MaixPy-v1tree/master/components/kendryte_sdk)
|
||||

|
||||
|
||||
You can see that the icon of the folder here is not the same, it is just a link, click will jump to the corresponding warehouse instead of opening the folder directly
|
||||
@@ -126,7 +126,7 @@ git clone https://github.com/sipeed/MaixPy --recursive
|
||||
|
||||
## What is issue
|
||||
|
||||
That is the meaning of the question. On github, each warehouse has a special place for asking questions, such as [MaixPy's issue](https://github.com/sipeed/MaixPy/issues)
|
||||
That is the meaning of the question. On github, each warehouse has a special place for asking questions, such as [MaixPy's issue](https://github.com/sipeed/MaixPy-v1issues)
|
||||
Everyone asks questions here, similar to forums, they will be recorded for easy reference
|
||||
|
||||
## What is fork
|
||||
|
||||
@@ -41,7 +41,7 @@ kflash -p /dev/ttyUSB0 -b 1500000 -B goE maixpy.bin
|
||||
|
||||
## Get the firmware
|
||||
|
||||
* The released version of the firmware can be downloaded from the [github](https://github.com/sipeed/MaixPy/releases) page
|
||||
* The released version of the firmware can be downloaded from the [github](https://github.com/sipeed/MaixPy-v1releases) page
|
||||
* The latest submitted code is automatically constructed and generated firmware download: [master branch](http://dl.sipeed.com/MAIX/MaixPy/release/master/)
|
||||
|
||||
|
||||
|
||||
@@ -34,12 +34,12 @@ desc: maixpy how to read this article correctly
|
||||
|
||||
* Just contact, you can read carefully from top to next page according to the table of contents on the left sidebar, just follow along, don’t skip the entry! ! !
|
||||
* Learn how to update the firmware and how to write code. It is also very important to learn how to use a serial terminal. It is not recommended to rely too much on the IDE, especially when the program dies, the terminal may get more error messages, which is more conducive to solving the problem. When encountering problems and asking questions in the community, try to give complete information about the terminal operation
|
||||
* Each module/library document is accompanied by a simple routine at the end, or here: [MaixPy_script](https://github.com/sipeed/MaixPy_scripts) to find the examples you need, you can try to run it to see the effect
|
||||
* Each module/library document is accompanied by a simple routine at the end, or here: [MaixPy_script](https://github.com/sipeed/MaixPy-v1_scripts) to find the examples you need, you can try to run it to see the effect
|
||||
|
||||
## Learn to search
|
||||
|
||||
* Regarding the interface and parameters of the module, please refer to it according to your needs when using it. **There is a search box** in the upper right corner, which can be used well. At the same time, you can also use the browser's page search function, that is, press the keyboard <kbd> Ctrl +F </kbd>, then enter the content to be searched and press the confirm key
|
||||
* Please don’t worry if there is anything you can’t find, you can go to the [issue](https://github.com/sipeed/MaixPy/issues) page of github to find (search and search) if anyone has mentioned it , If not, you can create a new issue, or go to [Forum](https://bbs.sipeed.com) to search for the issue, and don’t ask for help anymore, or contact technical support.
|
||||
* Please don’t worry if there is anything you can’t find, you can go to the [issue](https://github.com/sipeed/MaixPy-v1issues) page of github to find (search and search) if anyone has mentioned it , If not, you can create a new issue, or go to [Forum](https://bbs.sipeed.com) to search for the issue, and don’t ask for help anymore, or contact technical support.
|
||||
|
||||
## FAQ of this document
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ desc: maixpy MaixPy development history
|
||||
Write down the development history of this article, hoping to let future developers know what MaixPy has gone through, what are the reasons for some major changes, and when major progress has been made.
|
||||
|
||||
|
||||
The code submission history can be seen in the [historic](https://github.com/sipeed/MaixPy/commits/historic) and [master](https://github.com/sipeed/MaixPy/commits/master) branches
|
||||
The code submission history can be seen in the [historic](https://github.com/sipeed/MaixPy-v1commits/historic) and [master](https://github.com/sipeed/MaixPy-v1commits/master) branches
|
||||
|
||||
|
||||
## September 2018
|
||||
@@ -30,7 +30,7 @@ K210 SDK was replaced from freertos to standalone SDK, and the on-chip periphera
|
||||
|
||||
## February 2019
|
||||
|
||||
Release the first version of the firmware [v0.1.1 beta](https://github.com/sipeed/MaixPy/releases/tag/v0.1.1), support basic peripherals, inherit the image sensor lcd API of openmv, Equipped with some open source tools such as upyloader, armpy, etc., write documents and publish them on maixpy.sipeed.com
|
||||
Release the first version of the firmware [v0.1.1 beta](https://github.com/sipeed/MaixPy-v1releases/tag/v0.1.1), support basic peripherals, inherit the image sensor lcd API of openmv, Equipped with some open source tools such as upyloader, armpy, etc., write documents and publish them on maixpy.sipeed.com
|
||||
|
||||
In addition, there are also two new development boards, Maix bit and Maix Go.
|
||||
|
||||
@@ -38,7 +38,7 @@ Xiaohui left the project team
|
||||
|
||||
## March 2019
|
||||
|
||||
Release the second version of the firmware [v0.2.4](https://github.com/sipeed/MaixPy/releases/tag/v0.2.4), adding support for jpeg, wav, kpu, nes, avi, lvgl, etc.
|
||||
Release the second version of the firmware [v0.2.4](https://github.com/sipeed/MaixPy-v1releases/tag/v0.2.4), adding support for jpeg, wav, kpu, nes, avi, lvgl, etc.
|
||||
|
||||
|
||||
## April 2019
|
||||
|
||||
@@ -38,7 +38,7 @@ for i in range(led_num):
|
||||
|
||||
## Routine
|
||||
|
||||
[Grove-Chainable RGB LED example](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/grove/chainable_RGB_LED)
|
||||
[Grove-Chainable RGB LED example](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/grove/chainable_RGB_LED)
|
||||
|
||||
## More
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ ws.display()
|
||||
|
||||
## Routine
|
||||
|
||||
[Grove-RGB LED Ring example](https://github.com/sipeed/MaixPy_scripts/blob/master/modules/grove/ws2812/ws2812.py)
|
||||
[Grove-RGB LED Ring example](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/modules/grove/ws2812/ws2812.py)
|
||||
|
||||
## More
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ distance = device.measure(unit = ultrasonic.UNIT_CM, timeout = 3000000)
|
||||
|
||||
## Routine
|
||||
|
||||
[Grove-Ultrasonic Ranger example](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/grove/ultrasonic)
|
||||
[Grove-Ultrasonic Ranger example](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/grove/ultrasonic)
|
||||
|
||||
## More
|
||||
|
||||
|
||||
@@ -38,4 +38,4 @@ For API details, please refer to: [Sensor API](../../api_reference/machine_visio
|
||||
|
||||
Capture image and display on LCD
|
||||
|
||||
[demo_binocular](https://github.com/sipeed/MaixPy_scripts/blob/5a03ab549d06cd713f2c0d19f0c18fbd24c69025/hardware/demo_binocular.py)
|
||||
[demo_binocular](https://github.com/sipeed/MaixPy-v1_scripts/blob/5a03ab549d06cd713f2c0d19f0c18fbd24c69025/hardware/demo_binocular.py)
|
||||
|
||||
@@ -44,7 +44,7 @@ API details refer to [modules.htpa](../../api_reference/extend/htpa.md)
|
||||
|
||||
## Routine
|
||||
|
||||
* Draw temperature distribution graph on LCD: [htpa demo](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/heimann_HTPA_32x32/HTPA_32x32_demo.py)
|
||||
* Draw temperature distribution graph on LCD: [htpa demo](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/heimann_HTPA_32x32/HTPA_32x32_demo.py)
|
||||
|
||||
## More
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ The module uses serial port or I2C for communication. After confirming that the
|
||||
|
||||
## Routine
|
||||
|
||||
* Display infrared thermal imaging pictures on LCD: [demo mlx90640](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/mlx90640)
|
||||
* Display infrared thermal imaging pictures on LCD: [demo mlx90640](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/mlx90640)
|
||||
|
||||
## More
|
||||
|
||||
|
||||
@@ -23,4 +23,4 @@ bus = onewire(fm.fpioa.GPIOHS2)
|
||||
|
||||
## Routine
|
||||
|
||||
ds18b20 temperature reading: [onwire_ds18b20](https://github.com/sipeed/MaixPy_scripts/blob/80f4eb71d3481b6f119f25f39f7c9b37404b99ce/hardware/demo_onewire_ds18x20.py)
|
||||
ds18b20 temperature reading: [onwire_ds18b20](https://github.com/sipeed/MaixPy-v1_scripts/blob/80f4eb71d3481b6f119f25f39f7c9b37404b99ce/hardware/demo_onewire_ds18x20.py)
|
||||
|
||||
@@ -29,6 +29,6 @@ PWM control API reference: [PWM API](../../api_reference/machine/pwm.md)
|
||||
|
||||
## Routine
|
||||
|
||||
* Control the servo to rotate at different angles: [Servo](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/Servo/Servo.py)
|
||||
* Control the servo to rotate at different angles: [Servo](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/Servo/Servo.py)
|
||||
|
||||
* Servo pan/tilt: [gimbal](https://github.com/sipeed/MaixPy_scripts/tree/master/application/gimbal)
|
||||
* Servo pan/tilt: [gimbal](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/application/gimbal)
|
||||
|
||||
@@ -26,7 +26,7 @@ For detailed module information, please refer to [BT Specification and Data Manu
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_bt module, Bluetooth debugging assistant.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_bt), use the Bluetooth debugging assistant to connect and send after running Data, you can view the received and sent information on the terminal.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_bt), use the Bluetooth debugging assistant to connect and send after running Data, you can view the received and sent information on the terminal.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ For detailed module information, please refer to [EINK Specification and Data Ma
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_eink module.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_eink), the module will display the picture after running.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_eink), the module will display the picture after running.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ For detailed module information, please refer to [Ethernet Specification](http:/
|
||||
## Instructions
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_ethernet module, and network cable.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_ethernet), the module will print the communication data after running.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_ethernet), the module will print the communication data after running.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ For detailed module information, please refer to [LCD114 Specification and Data
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_lcd114 module.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_lcd114), the module will display the picture after running.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_lcd114), the module will display the picture after running.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ For detailed module information, please refer to [LoRa Specification and Data Ma
|
||||
|
||||
1. Preparation: Two development boards with the latest firmware burned, two sp_lora modules.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [sample code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_lora), and run the two development boards to send and receive separately Function, you can view the received and sent information on the terminal.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [sample code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_lora), and run the two development boards to send and receive separately Function, you can view the received and sent information on the terminal.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ For detailed module information, please refer to [RFID Specification and Data Ma
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_rfid module, M1 card.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_rfid), and put the card close to the module antenna after running. See the card reading information printed by the terminal.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_rfid), and put the card close to the module antenna after running. See the card reading information printed by the terminal.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ For detailed module information, please refer to [TOF Specification and Data Man
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_tof module.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_tof), and aim the laser aiming head to measure after running Click to see the distance information printed by the terminal.
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_tof), and aim the laser aiming head to measure after running Click to see the distance information printed by the terminal.
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ For detailed module information, please refer to [Meteorological Module Specific
|
||||
|
||||
1. Preparation: The development board with the latest firmware, sp_weather module.
|
||||
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/spmod/sp_weather), you can see the magnetism printed on the terminal after running Sensor and air pressure temperature and humidity sensor data
|
||||
2. Run: Connect the module, modify the configuration surrounded by config in [Sample Code](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/spmod/sp_weather), you can see the magnetism printed on the terminal after running Sensor and air pressure temperature and humidity sensor data
|
||||
|
||||
The procedure is as follows:
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ If you burn your model on flash, you should run boot.py in serial terminal. If i
|
||||
|
||||
## ValueError: [MAIXPY]kpu: load error:2006, ERR. NO_ MEM: memory not enough
|
||||
|
||||
This error means out of memory, use smaller size firmware to comsume less ram. There will be about 1M memory left because standard firmware consumes 2MB bytes, if you choose firmware which consumes 600kB you will have 3MB bytes memory left. Visit this demo [demo_view_mem.py](https://github.com/sipeed/MaixPy_scripts/blob/master/basic/demo_view_mem.py) to see how to know the rest memory.
|
||||
This error means out of memory, use smaller size firmware to comsume less ram. There will be about 1M memory left because standard firmware consumes 2MB bytes, if you choose firmware which consumes 600kB you will have 3MB bytes memory left. Visit this demo [demo_view_mem.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/basic/demo_view_mem.py) to see how to know the rest memory.
|
||||
|
||||
1. Using mini firmware instead of which you used now, or you need to reduce your dataset used during training
|
||||
2. Visit [memory manegment](./../course/others/mem.md) to manage your memory amd adjust it by garbage collector.
|
||||
@@ -349,7 +349,7 @@ If the RAM is not big enough to load multiple models, try to load one model, and
|
||||
|
||||
Beacuse the limit of RAM in K210, if need load big model, try to load it from flash and run it.
|
||||
|
||||
The detailed usage can be found in github: [Click me](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/load_big_model)
|
||||
The detailed usage can be found in github: [Click me](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/load_big_model)
|
||||
|
||||
## could not open port 'COMxx':Permission denied
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ desc: maixpy thanks
|
||||
---
|
||||
|
||||
|
||||
* [MaixPy source code contributor](https://github.com/sipeed/MaixPy/graphs/contributors)
|
||||
* [MaixPy_scripts sample code contributor](https://github.com/sipeed/MaixPy_scripts/graphs/contributors)
|
||||
* [MaixPy source code contributor](https://github.com/sipeed/MaixPy-v1graphs/contributors)
|
||||
* [MaixPy_scripts sample code contributor](https://github.com/sipeed/MaixPy-v1_scripts/graphs/contributors)
|
||||
* [Maixduino source code contributor](https://github.com/sipeed/Maixduino/graphs/contributors)
|
||||
* [MaixPy_DOC document contributor](https://github.com/sipeed/MaixPy_DOC/graphs/contributors)
|
||||
|
||||
@@ -128,14 +128,14 @@ please read doc before run it!
|
||||
如果想参与开发 MaixPy 的内置功能,可以下载进行开发,欢迎大家提交 `PR`
|
||||
|
||||
|
||||
本项目主要由 ©<a href="https://www.sipeed.com" style="color: #f14c42">Sipeed</a> Co.,Ltd. 维护, 并接受来自开源社区的贡献, 具体贡献这见[贡献者列表](https://github.com/sipeed/MaixPy/graphs/contributors)
|
||||
本项目主要由 ©<a href="https://www.sipeed.com" style="color: #f14c42">Sipeed</a> Co.,Ltd. 维护, 并接受来自开源社区的贡献, 具体贡献这见[贡献者列表](https://github.com/sipeed/MaixPy-v1graphs/contributors)
|
||||
|
||||
|
||||
## 反馈
|
||||
|
||||
关于本文档或者功能或者源码方面的问题,也欢迎提交issue:
|
||||
|
||||
* [反馈](https://github.com/sipeed/MaixPy/issues)
|
||||
* [反馈](https://github.com/sipeed/MaixPy-v1issues)
|
||||
|
||||
|
||||
## 交流
|
||||
@@ -156,7 +156,7 @@ please read doc before run it!
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>issue</td>
|
||||
<td><a href="https://github.com/sipeed/MaixPy/issues">https://github.com/sipeed/MaixPy/issues</a></td>
|
||||
<td><a href="https://github.com/sipeed/MaixPy-v1issues">https://github.com/sipeed/MaixPy-v1issues</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BBS</td>
|
||||
@@ -195,7 +195,7 @@ please read doc before run it!
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>MaixPy</strong> 例程仓库</td>
|
||||
<td><span class="limit_width">github:</span> <span class=""><a href="https://github.com/sipeed/MaixPy_scripts"><strong>github/maixpy_script</strong></a></span> <br><span class="limit_width">国内:</span><span class=""><a href="https://gitee.com/Sipeed/maixpy_scripts" rel="nofollow"><strong>gitee/maixpy_scripts</strong></a></span></td>
|
||||
<td><span class="limit_width">github:</span> <span class=""><a href="https://github.com/sipeed/MaixPy-v1_scripts"><strong>github/maixpy_script</strong></a></span> <br><span class="limit_width">国内:</span><span class=""><a href="https://gitee.com/Sipeed/maixpy_scripts" rel="nofollow"><strong>gitee/maixpy_scripts</strong></a></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>MaixPy 源码</td>
|
||||
|
||||
@@ -66,7 +66,7 @@ amp = FFT.amplitude(FFT_res)
|
||||
|
||||
### 例程
|
||||
|
||||
采集声音并进行 FFT 运算,将运算后的数据在屏幕上显示为柱状图: [demo_fft_spectrum](https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py)
|
||||
采集声音并进行 FFT 运算,将运算后的数据在屏幕上显示为柱状图: [demo_fft_spectrum](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/hardware/demo_fft_spectrum.py)
|
||||
|
||||
效果:
|
||||
<iframe width="600" height="350" src="//player.bilibili.com/player.html?aid=44617696&cid=78104545&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
|
||||
|
||||
@@ -24,7 +24,7 @@ KPU是通用的神经网络处理器,它可以在低功耗的情况下实现
|
||||
|
||||
模型下载地址:[http://dl.sipeed.com/MAIX/MaixPy/model](http://dl.sipeed.com/MAIX/MaixPy/model) , 下载`face_model_at_0x300000.kfpkg`
|
||||
|
||||
完整例程: [face_find](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/face_find)
|
||||
完整例程: [face_find](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/face_find)
|
||||
|
||||
### 运行特征图
|
||||
|
||||
@@ -95,7 +95,7 @@ KPU.load(offset, file_path)
|
||||
|
||||
##### 返回
|
||||
|
||||
如果正确加载,会返回返回值, 否则会抛出错误, 请看抛出的错误提示, 另外错误代码参考[这里](https://github.com/sipeed/MaixPy/blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
如果正确加载,会返回返回值, 否则会抛出错误, 请看抛出的错误提示, 另外错误代码参考[这里](https://github.com/sipeed/MaixPy-v1blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
|
||||
如果发现错误代码是小于 `2000` 的值, 则是固件版本太低,需要更新固件版本
|
||||
|
||||
@@ -111,7 +111,7 @@ kpu.load_flash(model_addr, is_dual_buf, batch_size, spi_speed)
|
||||
|
||||
#### 参数
|
||||
|
||||
* `model_addr`:Flash addr 经过预处理的模型烧录到 flash 中的偏移地址。注意,这里需要预处理模型文件[说明](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/load_big_model/README_ZH.md)。
|
||||
* `model_addr`:Flash addr 经过预处理的模型烧录到 flash 中的偏移地址。注意,这里需要预处理模型文件[说明](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/load_big_model/README_ZH.md)。
|
||||
* `is_dual_buf`:`0`,单一缓冲区加载,使用较少的 RAM 和较慢的速度动态加载该模型文件; `1`,开启双缓冲加载,需要更大的 RAM, 运行速度相对较快。
|
||||
* `batch_size`:将 `is_dual_buf` 设置为 1 时,需要设置 load batch_size,建议值为 `0x4000~0x10000`,可以测试出模型的最佳值。如果 `is_dual_buf` 为 0 则设置为 0
|
||||
* `spi_speed`:使用 SPI flash 加载模型文件时,我们会暂时将 flash 设置为高速模式,并设置所需的 spi 时钟频率。该值应 <= 80000000(实际频率,设值可能不等于实际频率。)
|
||||
@@ -202,7 +202,7 @@ kpu.init_yolo2(task, 0.5, 0.3, 5, anchor)
|
||||
img = image.Image()
|
||||
kpu.run_yolo2(task, img)
|
||||
```
|
||||
> 以上为节选代码,并不是完整部分,详细请看[人脸检测](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/face_find/demo_find_face.py)具体的代码
|
||||
> 以上为节选代码,并不是完整部分,详细请看[人脸检测](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/face_find/demo_find_face.py)具体的代码
|
||||
|
||||
#### 参数
|
||||
|
||||
@@ -321,7 +321,7 @@ success = set_outputs(kput_net, out_idx, width, height, channel)
|
||||
|
||||
##### 返回
|
||||
|
||||
* `success`: 是否设置成功, 如果不成功,注意看输出的提示信息, 参考[错误代码](https://github.com/sipeed/MaixPy/blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
* `success`: 是否设置成功, 如果不成功,注意看输出的提示信息, 参考[错误代码](https://github.com/sipeed/MaixPy-v1blob/fa3cf2c96353fa698e9386e42be8b3c9cf495114/components/kendryte_sdk/include/sipeed_kpu.h#L6-L23)
|
||||
|
||||
|
||||
### memtest
|
||||
@@ -336,7 +336,7 @@ KPU.memtest()
|
||||
```
|
||||
### face_encode
|
||||
|
||||
将 `forward` 返回的特征图进行量化,更多详情请查看:[kpu issue](https://github.com/sipeed/MaixPy/issues/342)
|
||||
将 `forward` 返回的特征图进行量化,更多详情请查看:[kpu issue](https://github.com/sipeed/MaixPy-v1issues/342)
|
||||
|
||||
```python
|
||||
feature = kpu.face_encode(fmap[:])
|
||||
|
||||
@@ -37,27 +37,27 @@ print(board_info.BOOT_KEY, board_info.BOOT_KEY == 16)
|
||||
|
||||
### Maix Bit
|
||||
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_bit.py)
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_bit.py)
|
||||
|
||||
### Maix Dock
|
||||
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_dock.py)
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_dock.py)
|
||||
|
||||
### Maix Go
|
||||
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_go.py)
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_go.py)
|
||||
|
||||
### Maix Duino
|
||||
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_duino.py)
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_duino.py)
|
||||
|
||||
### Maix Cube
|
||||
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_cube.py)
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_cube.py)
|
||||
|
||||
### Maix Amigo
|
||||
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_amigo.py)
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_amigo.py)
|
||||
|
||||
### Maix Nano
|
||||
|
||||
@@ -65,7 +65,7 @@ print(board_info.BOOT_KEY, board_info.BOOT_KEY == 16)
|
||||
|
||||
### 创建你的专属硬件
|
||||
|
||||
你可以借助该接口代码适配你的硬件,配置方法参考 [MaixPy_scripts/board](https://github.com/sipeed/MaixPy_scripts/tree/master/board) 里面有供你参考的配置文件。
|
||||
你可以借助该接口代码适配你的硬件,配置方法参考 [MaixPy_scripts/board](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board) 里面有供你参考的配置文件。
|
||||
|
||||
### board 的使用方法
|
||||
|
||||
|
||||
@@ -49,5 +49,5 @@ htpa 对象
|
||||
|
||||
## 例子
|
||||
|
||||
[heimann_HTPA_32x32](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/heimann_HTPA_32x32)
|
||||
[heimann_HTPA_32x32](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/heimann_HTPA_32x32)
|
||||
|
||||
|
||||
@@ -103,4 +103,4 @@ while True:
|
||||
a=class_ws2812.display()
|
||||
```
|
||||
|
||||
> 以上例程,可见[`MaixPy_scripts`](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/grove/ws2812)
|
||||
> 以上例程,可见[`MaixPy_scripts`](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/grove/ws2812)
|
||||
|
||||
@@ -12,7 +12,7 @@ desc: maixpy network
|
||||
**esp8285**
|
||||
在部分开发板上带了 一个 使用`AT`方式交互的网卡模块,比如`esp8285`,与`k210`通过串口连接
|
||||
|
||||
引脚`8`是使能脚,可以创建一个`GPIO`对象来控制它的高低电平来实现使能和失能,也可以用它复位(先低后高),复位后需要等待一小段时间才能操作,可以查看例程[network_espat.py](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/network/network_espat.py)
|
||||
引脚`8`是使能脚,可以创建一个`GPIO`对象来控制它的高低电平来实现使能和失能,也可以用它复位(先低后高),复位后需要等待一小段时间才能操作,可以查看例程[network_espat.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/network/network_espat.py)
|
||||
|
||||
**esp32**
|
||||
目前在`MaixDuino`开发板中有一个 `esp32` 模块通过 `spi` 与`k210`相连,同时也有单独的`TF`插卡式模块
|
||||
@@ -220,7 +220,7 @@ nic.enable_ap("maixpy", "12345678", 5, network.ESP8285.OPEN)
|
||||
## 例程
|
||||
|
||||
|
||||
参考[network目录下的例程](https://github.com/sipeed/MaixPy_scripts/tree/master/network)
|
||||
参考[network目录下的例程](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/network)
|
||||
|
||||
|
||||
## network.ESP32_SPI(cs,rst,rdy,mosi,miso,sclk)
|
||||
@@ -256,7 +256,7 @@ nic.enable_ap("maixpy", "12345678", 5, network.ESP8285.OPEN)
|
||||
|
||||
#### 例程
|
||||
|
||||
[demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
[demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
|
||||
|
||||
## network.WIZNET5K(spi, cs)
|
||||
@@ -329,4 +329,4 @@ nic.isconnected()
|
||||
|
||||
#### 例程
|
||||
|
||||
[network_wiznet5k.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_wiznet5k.py)
|
||||
[network_wiznet5k.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_wiznet5k.py)
|
||||
@@ -18,7 +18,7 @@ desc: maixpy NES 游戏模拟器
|
||||
#### 参数
|
||||
|
||||
* `tc_type`: 遥控器类型, 键盘(`nes.KEYBOARD`)(注意是串口与电脑通信,而不是直接接USB键盘到开发板)或者手柄(`nes.JOYSTICK`)。
|
||||
> 建议使用`PS2`手柄,体验会更好, 键盘通过串口工具输入可能不能同时按多个按键,当然也可以通过自己在PC写一个脚本来转发键值就能解决(去[这里](https://github.com/sipeed/MaixPy_scripts/tree/master/multimedia/nes)找找?)
|
||||
> 建议使用`PS2`手柄,体验会更好, 键盘通过串口工具输入可能不能同时按多个按键,当然也可以通过自己在PC写一个脚本来转发键值就能解决(去[这里](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/multimedia/nes)找找?)
|
||||
|
||||
* `cs`: 如果使用 `SPI` 接口的 `PS2` 手柄, 传入 `cs` 外设编号(注意不是引脚号,需要先映射引脚)
|
||||
* `mosi`: 如果使用 `SPI` 接口的 `PS2` 手柄, 传入 `mosi` 外设编号(注意不是引脚号,需要先映射引脚)
|
||||
|
||||
@@ -14,7 +14,7 @@ SHA256-SHA2系列的最新现代哈希算法。它适用于密码安全的目的
|
||||
|
||||
在 K210 中有硬件加速,不是软件计算
|
||||
|
||||
[例程](https://github.com/sipeed/MaixPy_scripts/blob/master/basic/demo_sha256.py):
|
||||
[例程](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/basic/demo_sha256.py):
|
||||
```python
|
||||
a = bytes([0]*65)
|
||||
b = hashlib.sha256(a)
|
||||
|
||||
@@ -9,7 +9,7 @@ desc: maixpy 如何编译
|
||||
|
||||
## 获取 maixpy 开源项目
|
||||
|
||||
请准备 linux 系统环境(在 Windows 上使用 WSL 也可以),挂上 XXX 代理,输入 `git clone https://github.com/sipeed/MaixPy` 拉取 MaixPy 仓库代码和子模块,确保拿到后阅读目录下的 [build.md](https://github.com/sipeed/MaixPy/blob/master/build.md) 文档。
|
||||
请准备 linux 系统环境(在 Windows 上使用 WSL 也可以),挂上 XXX 代理,输入 `git clone https://github.com/sipeed/MaixPy` 拉取 MaixPy 仓库代码和子模块,确保拿到后阅读目录下的 [build.md](https://github.com/sipeed/MaixPy-v1blob/master/build.md) 文档。
|
||||
|
||||
> 没有代理的同学可以用 github 镜像站列表(`https://github.com/rc1844/fastgithub`)加速拉取 maixpy 仓库,请不要用 gitee 拉取 maixpy 仓库,会掉子模块仓库的。
|
||||
|
||||
@@ -57,7 +57,7 @@ juwan@juwan-N85-N870HL:~/Desktop/maixpy$ git submodule status
|
||||
|
||||
> 这节内容假设你没有任何搭建交叉编译链的经验。
|
||||
|
||||
首先按 [build.md](https://github.com/sipeed/MaixPy/blob/master/build.md) 顺序执行各种操作即可,如果你不会英文你可以开翻译机。
|
||||
首先按 [build.md](https://github.com/sipeed/MaixPy-v1blob/master/build.md) 顺序执行各种操作即可,如果你不会英文你可以开翻译机。
|
||||
|
||||
步骤说明如下:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ desc: maixpy 打包文件系统
|
||||
|
||||
将 PC 上的若干个文件打包成一个 SPIFFS 文件系统镜像,使用 kflash 烧录到 flash 特定的地址, 这些文件就能直接在开发板上(MaixPy)读取到了
|
||||
|
||||
详情请看使用说明: [pack SPIFFS for MaixPy](https://github.com/sipeed/MaixPy/tree/master/tools/spiffs)
|
||||
详情请看使用说明: [pack SPIFFS for MaixPy](https://github.com/sipeed/MaixPy-v1tree/master/tools/spiffs)
|
||||
|
||||
操作示例 GIF:
|
||||

|
||||
|
||||
@@ -140,7 +140,7 @@ C 语言代码运行模型:
|
||||
MaixPy 运行模型:
|
||||
* 当运行 MaixPy (minimum版本) 时,能够加载 4MB 左右的模型。 如果不使用摄像头和 LCD, 最大可以加载 5MB 左右的模型(因为摄像头和 LCD 的缓冲区占用了很多内存,但实际应用也没多大意义了)
|
||||
* 当运行 MaixPy (完整版) 时,能够加载 2MB 左右的模型
|
||||
* 另外也支持实时从 `Flash` 加载模型, 理论上只要单层使用内存不超过 2MB, 整体模型可以无限大,只不过要牺牲一点运算速度。 使用方法看[这里](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/load_big_model)。 如果对原理和实现感兴趣,可以看[这里](https://neucrack.com/p/313)
|
||||
* 另外也支持实时从 `Flash` 加载模型, 理论上只要单层使用内存不超过 2MB, 整体模型可以无限大,只不过要牺牲一点运算速度。 使用方法看[这里](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/load_big_model)。 如果对原理和实现感兴趣,可以看[这里](https://neucrack.com/p/313)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ desc: maixpy 1000 种物体分类模型
|
||||
* 使用`minimum` 版本固件
|
||||
* [下载模型文件](https://dl.sipeed.com/fileList/MAIX/MaixPy/model/mobilenet_0x300000.kfpkg)
|
||||
* 使用 `kflash_gui` 烧录模型文件到 `Flash`, 这个模型文件回自动烧录到地址0x300000上,不需要手动选择地址
|
||||
* 保存文件[labels.txt](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/mobilenet_1000_class/labels.txt) ([备用链接](https://en.bbs.sipeed.com/uploads/default/original/1X/d41ad9dfbe01f228abe726986fbf1baf4e288f2e.zip)) 到文件系统,具体方法见入门教程(发挥你的聪明才智)(参考答案:因为内容太多,如果使用 REPL 直接复制粘贴可能数据会出错, 所以要使用 工具传输。最简单的是放到 SD 卡; 如果要放到 `/flash`,minimum 可能不支持 IDE, 可以使用`upyloader`发送文件)
|
||||
* 保存文件[labels.txt](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/mobilenet_1000_class/labels.txt) ([备用链接](https://en.bbs.sipeed.com/uploads/default/original/1X/d41ad9dfbe01f228abe726986fbf1baf4e288f2e.zip)) 到文件系统,具体方法见入门教程(发挥你的聪明才智)(参考答案:因为内容太多,如果使用 REPL 直接复制粘贴可能数据会出错, 所以要使用 工具传输。最简单的是放到 SD 卡; 如果要放到 `/flash`,minimum 可能不支持 IDE, 可以使用`upyloader`发送文件)
|
||||
* 因为这个模型有`4.2MiB`,比较大,所以使用了`minimum`的固件,同时保证`GC`使用的内存不要太大,可以通过以下方式设置小一点,把内存留给模型使用
|
||||
|
||||
```python
|
||||
@@ -65,6 +65,6 @@ print(fps)
|
||||
```
|
||||
|
||||
|
||||
完整例程看 [maixpy_scripts](https://github.com/sipeed/MaixPy_scripts/tree/master/machine_vision/mobilenet_1000_class)
|
||||
完整例程看 [maixpy_scripts](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/machine_vision/mobilenet_1000_class)
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ kpu.init_yolo2(task, 0.5, 0.3, 5, anchor)
|
||||
code = kpu.run_yolo2(task, img)
|
||||
```
|
||||
|
||||
得到结果, 完整例程看[这里](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/face_find/demo_find_face.py)
|
||||
得到结果, 完整例程看[这里](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/face_find/demo_find_face.py)
|
||||
|
||||
API 文档看 [Maix.KPU](./../../../api_reference/Maix/kpu.md)
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ desc: maixpy 人脸识别
|
||||
|
||||
* 从 [MaixHub](https://www.maixhub.com) 按照说明下载模型, 获得模型`smodel`, 就是 加密版本的`kmodel`
|
||||
* 按照入门教程的方法下载模型到开发板
|
||||
* 运行脚本 [script](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/face_recognization/demo_face_recognization.py)
|
||||
* 运行脚本 [script](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/face_recognization/demo_face_recognization.py)
|
||||
|
||||
|
||||
## 程序理解
|
||||
|
||||
@@ -14,7 +14,7 @@ desc: maixpy 自学习分类器(self learning classifier)
|
||||
* [在这里](https://dl.sipeed.com/shareURL/MAIX/MaixPy/release/master) 下载版本 >= v0.5.0-33 的固件
|
||||
* [下载 kmodel](https://maixhub.com/model/zoo/61)
|
||||
* 使用 [kflash_gui](https://github.com/sipeed/kflash_gui) 下载固件和模型
|
||||
* 运行 [示例脚本](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier.py)
|
||||
* 运行 [示例脚本](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier.py)
|
||||
> 如果使用 lite 版本的 kmodel, 应该在创建 classifier 的时候传入 `fea_len` 参数为`512`,使用另外一个大一点的(1.8MiB)模型的时候则不需要这个参数:
|
||||
```python
|
||||
classifier = kpu.classifier(model, class_num, sample_num, fea_len=512)
|
||||
@@ -32,7 +32,7 @@ classifier = kpu.classifier(model, class_num, sample_num, fea_len=512)
|
||||
## 保存/加载学习好的特征
|
||||
|
||||
* 使用 `classifier.save(path)` 来保存学习好的特征到`path`文件
|
||||
* 使用 `KPU.classifier.load()` 来加载特征, 参考 [self_learning_classifier_load.py](https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier_load.py) 文件
|
||||
* 使用 `KPU.classifier.load()` 来加载特征, 参考 [self_learning_classifier_load.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/machine_vision/self_learning_classifier/self_learning_classifier_load.py) 文件
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ desc: maixpy audio(音频) 的使用
|
||||
|
||||
## 使用方法
|
||||
|
||||
> MaixAmigo, MaixCube 在使用音频前需要[初始化 ES8374 音频解码芯片](https://github.com/sipeed/MaixPy_scripts/blob/master/modules/others/es8374/es8374.py)
|
||||
> MaixAmigo, MaixCube 在使用音频前需要[初始化 ES8374 音频解码芯片](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/modules/others/es8374/es8374.py)
|
||||
|
||||
* 创建 audio 对象
|
||||
|
||||
@@ -67,7 +67,7 @@ player.finish()
|
||||
|
||||
## 例程
|
||||
|
||||
> 测试音频地址:[6.wav](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/6.wav)
|
||||
> 测试音频地址:[6.wav](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/audio/6.wav)
|
||||
|
||||
* 播放 wav 文件:[play_wav](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/play_wav.py)
|
||||
* 录制音频为 wav 文件并保存:[record_wav](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/record_wav.py)
|
||||
* 播放 wav 文件:[play_wav](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/audio/play_wav.py)
|
||||
* 录制音频为 wav 文件并保存:[record_wav](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/audio/record_wav.py)
|
||||
|
||||
@@ -9,7 +9,7 @@ desc: maixpy video(视频) 的使用
|
||||
|
||||
## 使用方法
|
||||
|
||||
> MaixAmigo, MaixCube在使用音频前需要[初始化 ES8374 音频解码芯片](https://github.com/sipeed/MaixPy_scripts/blob/master/modules/others/es8374/es8374.py)
|
||||
> MaixAmigo, MaixCube在使用音频前需要[初始化 ES8374 音频解码芯片](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/modules/others/es8374/es8374.py)
|
||||
|
||||
* 创建 video 对象,设置音量
|
||||
|
||||
@@ -61,7 +61,7 @@ v.__del__()
|
||||
|
||||
> 测试用例中 avi 文件地址:[badapple.avi](https://api.dl.sipeed.com/shareURL/MAIX/MaixPy/assets)
|
||||
|
||||
* 播放 avi 文件:[video_play](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/demo_video_play.py)
|
||||
* 使用摄像头录制视频为 avi 文件并保存:[record_video](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/demo_video_record.py)
|
||||
* 顺序捕获 avi 视频每个画面并显示:[video_capture](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/demo_video_capture.py)
|
||||
* amigo 播放 avi 文件:[amigo_play_video](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/video/amigo_play_video.py)
|
||||
* 播放 avi 文件:[video_play](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/demo_video_play.py)
|
||||
* 使用摄像头录制视频为 avi 文件并保存:[record_video](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/demo_video_record.py)
|
||||
* 顺序捕获 avi 视频每个画面并显示:[video_capture](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/demo_video_capture.py)
|
||||
* amigo 播放 avi 文件:[amigo_play_video](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/video/amigo_play_video.py)
|
||||
|
||||
@@ -121,7 +121,7 @@ def enable_espat():
|
||||
|
||||
#### Maixduino + ESP32
|
||||
|
||||
使用 Maixduino 的 esp32 联网,上传该类库 [network_esp32.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_esp32.py) 即可。
|
||||
使用 Maixduino 的 esp32 联网,上传该类库 [network_esp32.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_esp32.py) 即可。
|
||||
|
||||
```python
|
||||
# This file is part of MaixPY
|
||||
@@ -256,7 +256,7 @@ if __name__ == "__main__":
|
||||
|
||||
#### ESP82XX 的 AT 固件
|
||||
|
||||
使用 ESP8266/85 的 AT 固件联网,上传该类库 [network_espat.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_espat.py) 即可
|
||||
使用 ESP8266/85 的 AT 固件联网,上传该类库 [network_espat.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_espat.py) 即可
|
||||
|
||||
> `board_info` 与板卡相关,不同板卡配置不同,使用前需要[手动配置](../../api_reference/builtin_py/board_info.md)。
|
||||
|
||||
@@ -408,7 +408,7 @@ if __name__ == "__main__":
|
||||
|
||||
#### Spmod 的 WIZNET5K
|
||||
|
||||
使用 Spmod 的 WIZNET5K 网卡联网,运行此类中的代码 [network_wiznet5k.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/network_wiznet5k.py) 即可,可以直接获取对应的 IP 信息
|
||||
使用 Spmod 的 WIZNET5K 网卡联网,运行此类中的代码 [network_wiznet5k.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/network_wiznet5k.py) 即可,可以直接获取对应的 IP 信息
|
||||
|
||||
|
||||
WIZNET5K 为有线网卡模块, 使用时只需要将网线插好即可, 使用 SPI 协议, 在完整固件中默认使能了此模块, 最小固件中没有.
|
||||
|
||||
@@ -19,17 +19,17 @@ desc: maixpy 如何使用 Socket 网络编程
|
||||
|
||||
有如下几类典型客户端代码:
|
||||
|
||||
- TCP 客户端 [demo_socket_tcp_client.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_tcp_client.py)
|
||||
- UDP 客户端 [demo_socket_udp_client.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_udp_client.py)
|
||||
- TCP 图传 客户端 [demo_socket_pic_client.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_pic_client.py)
|
||||
- TCP 客户端 [demo_socket_tcp_client.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_tcp_client.py)
|
||||
- UDP 客户端 [demo_socket_udp_client.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_udp_client.py)
|
||||
- TCP 图传 客户端 [demo_socket_pic_client.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_pic_client.py)
|
||||
|
||||
### 准备调试工具(服务端代码)
|
||||
|
||||
常见于网络调试助手,或者自己在电脑上运行提供的 Python3 服务端脚本。
|
||||
|
||||
- TCP 服务端 [demo_socket_tcp_server.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_tcp_server.py)
|
||||
- UDP 服务端 [demo_socket_udp_server.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_udp_server.py)
|
||||
- TCP 图传 服务端 [demo_socket_pic_server.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_pic_server.py)
|
||||
- TCP 服务端 [demo_socket_tcp_server.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_tcp_server.py)
|
||||
- UDP 服务端 [demo_socket_udp_server.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_udp_server.py)
|
||||
- TCP 图传 服务端 [demo_socket_pic_server.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_pic_server.py)
|
||||
|
||||
先起一个已知 IP 地址和端口的网络服务,等待 MaixPy 作为客户端发送数据过来服务器。
|
||||
|
||||
@@ -96,7 +96,7 @@ addr: ('192.168.0.107', 60000) data: b'HELLO\n'
|
||||
|
||||
#### esp32 的 ping
|
||||
|
||||
- [demo_esp32_ping.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_ping.py)
|
||||
- [demo_esp32_ping.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_ping.py)
|
||||
|
||||
```shell
|
||||
ESP32_SPI firmware version: 1.4.0
|
||||
@@ -111,7 +111,7 @@ addr: ('192.168.0.107', 60000) data: b'HELLO\n'
|
||||
|
||||
#### esp32 的 ADC
|
||||
|
||||
- [demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
- [demo_esp32_read_adc.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_read_adc.py)
|
||||
|
||||
```shell
|
||||
MicroPython v0.5.1-136-g039f72b6c-dirty on 2020-11-18; Sipeed_M1 with kendryte-k210
|
||||
@@ -134,19 +134,19 @@ addr: ('192.168.0.107', 60000) data: b'HELLO\n'
|
||||
|
||||
#### HTTP 的支持
|
||||
|
||||
- [demo_http_get_jpg.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_http_get_jpg.py)
|
||||
- [demo_http_get_jpg.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_http_get_jpg.py)
|
||||
|
||||
#### https 的支持
|
||||
|
||||
该功能默认是不被编译的,但所以提供的是 HTTP 的使用方法,而 HTTP 和 HTTPS 只是路径 url 的区别,注意这个 https 的 IP 解析依赖于网卡固件,并不在 K210 上完成。
|
||||
|
||||
- [demo_socket_https.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_https.py)
|
||||
- [demo_socket_https.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_https.py)
|
||||
|
||||
#### esp32、82XX 的 scan WIFI AP 热点
|
||||
|
||||
- [demo_esp32_ap_scan.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_esp32_ap_scan.py)
|
||||
- [demo_esp32_ap_scan.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_esp32_ap_scan.py)
|
||||
|
||||
- [demo_espat_ap_scan.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_espat_ap_scan.py)
|
||||
- [demo_espat_ap_scan.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_espat_ap_scan.py)
|
||||
|
||||
```python
|
||||
'''
|
||||
@@ -174,12 +174,12 @@ addr: ('192.168.0.107', 60000) data: b'HELLO\n'
|
||||
|
||||
这个是来自于 micropython 的官方仓库提供的代码,如果是商业用途,请将 socket 配置为非阻塞且添加 MQTT 保活的协议。
|
||||
|
||||
- [demo_socket_mqtt.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_socket_mqtt.py)
|
||||
- [demo_socket_mqtt.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_socket_mqtt.py)
|
||||
|
||||
#### 更新 ESP82XX 的 AT 固件
|
||||
|
||||
> 这是给 AT 固件提供的功能,懂的自然懂。
|
||||
|
||||
- [demo_espat_ap_test.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/demo_espat_ap_test.py)
|
||||
- [demo_espat_ap_test.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/demo_espat_ap_test.py)
|
||||
|
||||
- [espat_upgrade.py](https://github.com/sipeed/MaixPy_scripts/blob/master/network/espat_upgrade.py)
|
||||
- [espat_upgrade.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/network/espat_upgrade.py)
|
||||
|
||||
@@ -13,7 +13,7 @@ desc: maixpy LittlevGL
|
||||
|
||||
## 例程
|
||||
|
||||
参考 [github 的 MaixPy_Scripts](https://github.com/sipeed/MaixPy_scripts/tree/master/multimedia/gui/lvgl)
|
||||
参考 [github 的 MaixPy_Scripts](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/multimedia/gui/lvgl)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,4 +11,4 @@ desc: maixpy MaixPy 手把手教程说明
|
||||
|
||||
|
||||
本教程主要分模块地介绍 MaixPy 包含的功能的使用方法,
|
||||
在看教程时,可能需要配合 API 文档 和 例程仓库[MaixPy_scripts](https://github.com/sipeed/maixpy_scripts) 一同学习
|
||||
在看教程时,可能需要配合 API 文档 和 例程仓库[MaixPy_scripts](https://github.com/sipeed/MaixPy-v1_scripts) 一同学习
|
||||
|
||||
@@ -27,7 +27,7 @@ res = FFT.run(data, points, shift)
|
||||
|
||||
## 例程
|
||||
|
||||
采集声音并进行 FFT 运算,将运算后的数据在屏幕上显示为柱状图: [demo_fft_spectrum](https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py)
|
||||
采集声音并进行 FFT 运算,将运算后的数据在屏幕上显示为柱状图: [demo_fft_spectrum](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/hardware/demo_fft_spectrum.py)
|
||||
|
||||
效果:
|
||||
<iframe width="600" height="350" src="//player.bilibili.com/player.html?aid=44617696&cid=78104545&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
|
||||
|
||||
@@ -43,7 +43,7 @@ for i in range(hist_x_num):
|
||||
|
||||
实时采集音频数据并绘制为 FFT 瀑布图
|
||||
|
||||
[demo_fft_waterfall.py](https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_waterfall.py)
|
||||
[demo_fft_waterfall.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/hardware/demo_fft_waterfall.py)
|
||||
|
||||
效果:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ desc: maixpy maix asr(自动语音识别)
|
||||
|
||||
> TODO 之后存放到下载站统一链接。
|
||||
|
||||
从这里获取声学模型[maix_asr_2900k_0x500000](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/maix_asr_2900k_0x500000.kmodel), 烧录到 0x500000 地址即可。
|
||||
从这里获取声学模型[maix_asr_2900k_0x500000](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/maix_asr_2900k_0x500000.kmodel), 烧录到 0x500000 地址即可。
|
||||
|
||||
> 没有烧模型就加载模块会 core dump ,不要跑来问怎么报错了。
|
||||
|
||||
@@ -133,4 +133,4 @@ finally:
|
||||
|
||||
也就是你对着麦克风在 6 秒内,说【你-好】、【好-的】、【小-爱】就可以完成识别了,配置项为两个字段,第一个字段长度不超过六组拼音,第二个字段表示识别的最低门限(匹配的阈值),高于该值就打印,低于该值就丢弃。
|
||||
|
||||
最开始测试的时候,说话可以大声一点,具体效果看[演示视频](https://www.bilibili.com/video/BV1C5411L7JC/), 完整示例: [test_maix_asr.py](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/test_maix_asr.py)
|
||||
最开始测试的时候,说话可以大声一点,具体效果看[演示视频](https://www.bilibili.com/video/BV1C5411L7JC/), 完整示例: [test_maix_asr.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/test_maix_asr.py)
|
||||
|
||||
@@ -31,8 +31,8 @@ desc: maixpy isolated word
|
||||
|
||||
### 开箱即用示例代码
|
||||
|
||||
- 使用 maixduino / maixbit 的测试用例 [isolated_word.py](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/isolated_word.py),使用方法请阅读代码,请注意硬件的 麦克风 配置 和 声道 配置。
|
||||
- Maix DOCK 可直接使用的示例代码[demo_isolated_word_on_maixdock.py](https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/speech_recognizer/demo_isolated_word_on_maixdock.py),按屏幕提示说话即可,具体看[测试录像](https://www.bilibili.com/video/BV1oz4y1C7yE?from=search&seid=17464946072274851468)。
|
||||
- 使用 maixduino / maixbit 的测试用例 [isolated_word.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/isolated_word.py),使用方法请阅读代码,请注意硬件的 麦克风 配置 和 声道 配置。
|
||||
- Maix DOCK 可直接使用的示例代码[demo_isolated_word_on_maixdock.py](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/multimedia/speech_recognizer/demo_isolated_word_on_maixdock.py),按屏幕提示说话即可,具体看[测试录像](https://www.bilibili.com/video/BV1oz4y1C7yE?from=search&seid=17464946072274851468)。
|
||||
|
||||
### 模块调用流程
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ desc: maixpy Grove AI HAT
|
||||
|
||||
| 传感器 | 功能 | I2C 地址(7位地址) | SCL | SDA | 示例代码 |
|
||||
| ------- | ------------ | ----------------- | ---- | ---- | ---------------------- |
|
||||
| ADS1115 | ADC | 0x48 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/ads1115) |
|
||||
| ADXL345 | 三轴加速度计 | 0x53 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/others/adxl345) |
|
||||
| ADS1115 | ADC | 0x48 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/ads1115) |
|
||||
| ADXL345 | 三轴加速度计 | 0x53 | IO23 | IO24 | [script](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/others/adxl345) |
|
||||
|
||||
## 资源下载
|
||||
|
||||
|
||||
@@ -48,14 +48,14 @@ MaixAmigo 板载 I2C 传感器/IC
|
||||
|
||||
| IC | 设备 id | I2C 地址(7位地址) | MaixPy 读取地址 | 示例代码 |
|
||||
| --------------------- | ----------- | ----------------- | ---------------------------- |----|
|
||||
| ES8374(音频解码芯片) | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301(三轴加速计) | 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173(电源管理芯片) | 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
| ES8374(音频解码芯片) | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301(三轴加速计) | 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173(电源管理芯片) | 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
|
||||
|
||||
## 上手把玩
|
||||
|
||||
MaixAmigo 同样使用 MaixPy 入门 AIoT ,由于硬件特殊性,请在[配置 amigo 硬件](https://github.com/sipeed/MaixPy_scripts/blob/master/board/config_maix_amigo.py) 后再使用 MaixPy (如果不配置会导致摄像头拍摄的照片有噪点)。
|
||||
MaixAmigo 同样使用 MaixPy 入门 AIoT ,由于硬件特殊性,请在[配置 amigo 硬件](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/board/config_maix_amigo.py) 后再使用 MaixPy (如果不配置会导致摄像头拍摄的照片有噪点)。
|
||||
|
||||
而在开发之前我们需要了解并准备相关工具,以减少我们后边因为准备不足而走的坑路
|
||||
|
||||
@@ -80,7 +80,7 @@ MaixAmigo 同样使用 MaixPy 入门 AIoT ,由于硬件特殊性,请在[配
|
||||
- USB 驱动:[点我](https://dl.sipeed.com/shareURL/MAIX/tools/driver)
|
||||
- Kflash_gui:[https://dl.sipeed.com/shareURL/MAIX/tools/kflash_gui](https://dl.sipeed.com/shareURL/MAIX/tools/kflash_gui)
|
||||
- MaixPy IDE :[https://dl.sipeed.com/shareURL/MAIX/MaixPy/ide/_/v0.2.5](https://dl.sipeed.com/shareURL/MAIX/MaixPy/ide/_/v0.2.5)
|
||||
- 例程程序库:[https://github.com/sipeed/MaixPy_scripts](https://github.com/sipeed/MaixPy_scripts)
|
||||
- 例程程序库:[https://github.com/sipeed/MaixPy-v1_scripts](https://github.com/sipeed/MaixPy-v1_scripts)
|
||||
|
||||
### 安装驱动
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@ MaixCube 板载 I2C 传感器/IC
|
||||
|
||||
| IC | 设备 id | I2C 地址(7位地址) | MaixPy 读取地址 | 示例代码 |
|
||||
| ------ | ----------- | ----------------- | ---------------------------- |----|
|
||||
| ES8374 | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301 | 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173 | 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
| ES8374 | 0x08 | 0x10 | D(16) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/79a5485ec983e67bb8861305a52418b29e0dc205/modules/others/es8374/es8374.py)|
|
||||
| MSA301 | 0x13 | 0x26 | D(38) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/msa301.py)|
|
||||
| AXP173 | 0x68 | 0x34 | D(52) |[code](https://github.com/sipeed/MaixPy-v1_scripts/blob/7fea2359a7f0c05f586be915aa8e6112262e0caa/multimedia/gui/maixui/pmu_axp173.py)|
|
||||
|
||||
|
||||
## 上手把玩
|
||||
@@ -80,7 +80,7 @@ MaixCube 板载 I2C 传感器/IC
|
||||
- USB 驱动:[点我](https://dl.sipeed.com/shareURL/MAIX/tools/driver)
|
||||
- Kflash_gui:[https://dl.sipeed.com/shareURL/MAIX/tools/kflash_gui](https://dl.sipeed.com/shareURL/MAIX/tools/kflash_gui)
|
||||
- MaixPy IDE :[https://dl.sipeed.com/shareURL/MAIX/MaixPy/ide/_/v0.2.5](https://dl.sipeed.com/shareURL/MAIX/MaixPy/ide/_/v0.2.5)
|
||||
- 例程程序库:[https://github.com/sipeed/MaixPy_scripts](https://github.com/sipeed/MaixPy_scripts)
|
||||
- 例程程序库:[https://github.com/sipeed/MaixPy-v1_scripts](https://github.com/sipeed/MaixPy-v1_scripts)
|
||||
|
||||
### 安装驱动
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ desc: maixpy 源码编译
|
||||
|
||||
## 本机环境编译
|
||||
|
||||
编译方法请参考 源码下的编译说明 [build.md](https://github.com/sipeed/MaixPy/blob/master/build.md)
|
||||
编译方法请参考 源码下的编译说明 [build.md](https://github.com/sipeed/MaixPy-v1blob/master/build.md)
|
||||
|
||||
在 `python project.py menuconfig` 命令部分可以 勾选 或者 去掉 功能和模块
|
||||
|
||||
@@ -20,7 +20,7 @@ docker 可以简化开发环境安装
|
||||
> 如果你没用过 docker, 关于 docker 的知识请自行学习,
|
||||
> 在没学习过的情况下你可以认为它和虚拟机类似,即已经为你准备好了带编译环境的虚拟机,直接下载运行就可以用来编译源码了
|
||||
|
||||
docker 镜像已经打包好了环境,直接拉取镜像并且运行即可开始编译, 参考 [使用 Docker 编译源码](https://github.com/sipeed/MaixPy/tree/master/tools/docker)
|
||||
docker 镜像已经打包好了环境,直接拉取镜像并且运行即可开始编译, 参考 [使用 Docker 编译源码](https://github.com/sipeed/MaixPy-v1tree/master/tools/docker)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,22 +28,22 @@ led_r.value(0)
|
||||
选择自己对应的开发板类型
|
||||
|
||||
1. Maix Bit
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_bit.py)
|
||||
[config_maix_bit.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_bit.py)
|
||||
|
||||
2. Maix Dock
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_dock.py)
|
||||
[config_maix_dock.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_dock.py)
|
||||
|
||||
3. Maix Go
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_go.py)
|
||||
[config_maix_go.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_go.py)
|
||||
|
||||
4. Maix Duino
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_duino.py)
|
||||
[config_maix_duino.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_duino.py)
|
||||
|
||||
5. Maix Cube
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_cube.py)
|
||||
[config_maix_cube.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_cube.py)
|
||||
|
||||
6. Maix Amigo
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy_scripts/tree/master/board/config_maix_amigo.py)
|
||||
[config_maix_amigo.py](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board/config_maix_amigo.py)
|
||||
|
||||
7. Maix Nano
|
||||
> 这个没有硬件外设.....所以不要问为什么没有它的配置代码了。
|
||||
@@ -58,7 +58,7 @@ print(board_info.BOOT_KEY, board_info.BOOT_KEY == 16)
|
||||
|
||||
## 创建你的专属硬件
|
||||
|
||||
你可以借助该接口代码适配你的硬件,配置方法参考 [MaixPy_scripts/board](https://github.com/sipeed/MaixPy_scripts/tree/master/board) 里面有供你参考的配置文件。
|
||||
你可以借助该接口代码适配你的硬件,配置方法参考 [MaixPy_scripts/board](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/board) 里面有供你参考的配置文件。
|
||||
|
||||
## board 的使用方法
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ desc: maixpy 开机自启动脚本
|
||||
- boot.py 主要用于配置硬件,只配置一次即可。
|
||||
- main.py 可以用于主要的运行的程序。
|
||||
|
||||
对应的具体执行的[代码在此](https://github.com/sipeed/MaixPy/blob/972059491227ece63fbfc2cd0e78fe13ee78427d/components/micropython/port/src/maixpy_main.c#L586-L595),有疑问就直接看源码。
|
||||
对应的具体执行的[代码在此](https://github.com/sipeed/MaixPy-v1blob/972059491227ece63fbfc2cd0e78fe13ee78427d/components/micropython/port/src/maixpy_main.c#L586-L595),有疑问就直接看源码。
|
||||
|
||||
注意:
|
||||
* Micro SD 卡应该被格式化为 FAT(FAT32) 文件系统
|
||||
|
||||
@@ -33,7 +33,7 @@ desc: maixpy MaixPy 开发板上电
|
||||
|
||||
## 检查固件版本
|
||||
|
||||
使用**串口终端**打开串口,然后复位,看输出的版本信息,与[github](https://github.com/sipeed/MaixPy/releases) 或者 [master 分支](http://dl.sipeed.com/MAIX/MaixPy/release/master/) 的固件版本对比,根据当前版本情况考虑升级到最新版本
|
||||
使用**串口终端**打开串口,然后复位,看输出的版本信息,与[github](https://github.com/sipeed/MaixPy-v1releases) 或者 [master 分支](http://dl.sipeed.com/MAIX/MaixPy/release/master/) 的固件版本对比,根据当前版本情况考虑升级到最新版本
|
||||
|
||||
比如:
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ star 后, 可以在个人资料里面找到自己的 star 仓库,方便下
|
||||
子模块, 英文叫`submodule`, 就是在仓库中可以引用其它仓库,相当于是一个软链接, 不需要在仓库放实际的代码, 只需要放一个链接即可。
|
||||
这样的好处是多个仓库可以分开管理, 比如`仓库1`引用了`仓库2`作为子模块, 如果`仓库2`代码更新了, `仓库1`可以选择继续使用旧版的`仓库2`的代码, 也可以选择使用`仓库2`最新的代码,只是更新一下子模块链接
|
||||
|
||||
比如`MaixPy`用了`kendryte-standalone-sdk`作为子模块,看[这里](https://github.com/sipeed/MaixPy/tree/master/components/kendryte_sdk)
|
||||
比如`MaixPy`用了`kendryte-standalone-sdk`作为子模块,看[这里](https://github.com/sipeed/MaixPy-v1tree/master/components/kendryte_sdk)
|
||||

|
||||
|
||||
可以看到这里文件夹的图标不太一样,它只是一个链接,点击就会跳到相应的仓库而不是直接打开文件夹
|
||||
@@ -124,7 +124,7 @@ git clone https://github.com/sipeed/MaixPy --recursive
|
||||
|
||||
## 什么是 issue
|
||||
|
||||
也就是问题的意思, 在github 上, 每个仓库有一个专门用来提问的地方, 比如 [MaixPy的issue](https://github.com/sipeed/MaixPy/issues)
|
||||
也就是问题的意思, 在github 上, 每个仓库有一个专门用来提问的地方, 比如 [MaixPy的issue](https://github.com/sipeed/MaixPy-v1issues)
|
||||
大家在这里提问, 类似论坛一样, 都会被记录下来,方便后面的人查阅
|
||||
|
||||
## 什么是 fork
|
||||
|
||||
@@ -41,7 +41,7 @@ kflash -p /dev/ttyUSB0 -b 1500000 -B goE maixpy.bin
|
||||
|
||||
## 获得固件
|
||||
|
||||
* 发布版本的固件从 <a href ="https://github.com/sipeed/MaixPy/releases" target="_break">github</a> 页面下载
|
||||
* 发布版本的固件从 <a href ="https://github.com/sipeed/MaixPy-v1releases" target="_break">github</a> 页面下载
|
||||
* 在Sipeed官方下载站获取:<a href ="http://dl.sipeed.com/MAIX/MaixPy/release/master/" target="_break">下载站</a>
|
||||
|
||||
|
||||
|
||||
@@ -34,12 +34,12 @@ desc: maixpy 如何正确 阅读 本文
|
||||
|
||||
* 刚接触,可以根据左边侧边栏的目录从上到下一页一页仔细看,跟着做即可, 入门一定不要跳过!!!
|
||||
* 学会如何更新固件,如何写代码,其中学会使用串口终端也十分重要,不建议过分依赖 IDE, 特别是在程序死掉的时候, 用终端可能会获得更多报错信息,更有利于解决问题,在遇到问题在社区提问时,也尽量给出终端运行的完整信息
|
||||
* 每个模块/库文档里面的结尾都附有简单例程, 或者到这里: [MaixPy_script](https://github.com/sipeed/MaixPy_scripts) 查找需要的示例, 可以尝试运行看效果
|
||||
* 每个模块/库文档里面的结尾都附有简单例程, 或者到这里: [MaixPy_script](https://github.com/sipeed/MaixPy-v1_scripts) 查找需要的示例, 可以尝试运行看效果
|
||||
|
||||
## 学会搜索
|
||||
|
||||
* 关于模块的接口及参数,在使用时根据自己的需求进行查阅,<code><strong><font size=4>页面顶部右上角有搜索框</font></strong></code>,可以好好利用,同时也可以使用浏览器的页面搜索功能,即按键盘<kbd> Ctrl+F </kbd>,然后输入要搜索的内容后按确认键
|
||||
* 如果有找不到的内容也请不要着急, 可以上 github 的 [issue](https://github.com/sipeed/MaixPy/issues) 页面找一找(搜一搜)是不是有人提过了,没有的话可以新建 issue, 或者到 [论坛](https://bbs.sipeed.com) 搜索问题,没有再向大家求助, 或者联系技术支持。
|
||||
* 如果有找不到的内容也请不要着急, 可以上 github 的 [issue](https://github.com/sipeed/MaixPy-v1issues) 页面找一找(搜一搜)是不是有人提过了,没有的话可以新建 issue, 或者到 [论坛](https://bbs.sipeed.com) 搜索问题,没有再向大家求助, 或者联系技术支持。
|
||||
|
||||
## MaixPy 常见问题
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ desc: maixpy MaixPy 发展历程
|
||||
写下本篇发展历程, 希望让后来的开发者们了解到 MaixPy 都经历了什么,以及一些重大的改变的原因是什么,以及在何时取得了重大的进步等
|
||||
|
||||
|
||||
代码提交历史可以在 [historic](https://github.com/sipeed/MaixPy/commits/historic) 和 [master](https://github.com/sipeed/MaixPy/commits/master) 分支看到
|
||||
代码提交历史可以在 [historic](https://github.com/sipeed/MaixPy-v1commits/historic) 和 [master](https://github.com/sipeed/MaixPy-v1commits/master) 分支看到
|
||||
|
||||
|
||||
## 2018 年 9 月
|
||||
@@ -30,7 +30,7 @@ k210 SDK 从 freertos 换成了 standalone SDK, 并且着手片上外设驱动
|
||||
|
||||
## 2019 年 2 月
|
||||
|
||||
发布第一版固件 [v0.1.1 beta](https://github.com/sipeed/MaixPy/releases/tag/v0.1.1), 支持了基本的外设, 继承了 openmv 的 image sensor lcd API,适配了一些开源的工具比如 upyloader,armpy等, 编写文档 并发布在 maixpy.sipeed.com
|
||||
发布第一版固件 [v0.1.1 beta](https://github.com/sipeed/MaixPy-v1releases/tag/v0.1.1), 支持了基本的外设, 继承了 openmv 的 image sensor lcd API,适配了一些开源的工具比如 upyloader,armpy等, 编写文档 并发布在 maixpy.sipeed.com
|
||||
|
||||
另外这时也有了 Maix bit 和 Maix Go 两块新开发板
|
||||
|
||||
@@ -38,7 +38,7 @@ xiaohui 退出项目组
|
||||
|
||||
## 2019 年 3 月
|
||||
|
||||
发布第二版固件 [v0.2.4](https://github.com/sipeed/MaixPy/releases/tag/v0.2.4), 增加了 jpeg, wav, kpu, nes, avi, lvgl 等支持
|
||||
发布第二版固件 [v0.2.4](https://github.com/sipeed/MaixPy-v1releases/tag/v0.2.4), 增加了 jpeg, wav, kpu, nes, avi, lvgl 等支持
|
||||
|
||||
|
||||
## 2019 年 4 月
|
||||
|
||||
@@ -37,7 +37,7 @@ for i in range(led_num):
|
||||
|
||||
## 例程
|
||||
|
||||
[Grove - Chainable RGB LED 例程](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/grove/chainable_RGB_LED)
|
||||
[Grove - Chainable RGB LED 例程](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/grove/chainable_RGB_LED)
|
||||
|
||||
## 更多
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ ws.display()
|
||||
|
||||
## 例程
|
||||
|
||||
[Grove - RGB LED Ring 例程](https://github.com/sipeed/MaixPy_scripts/blob/master/modules/grove/ws2812/ws2812.py)
|
||||
[Grove - RGB LED Ring 例程](https://github.com/sipeed/MaixPy-v1_scripts/blob/master/modules/grove/ws2812/ws2812.py)
|
||||
|
||||
## 更多
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ distance = device.measure(unit = ultrasonic.UNIT_CM, timeout = 3000000)
|
||||
|
||||
## 例程
|
||||
|
||||
[Grove - Ultrasonic Ranger 例程](https://github.com/sipeed/MaixPy_scripts/tree/master/modules/grove/ultrasonic)
|
||||
[Grove - Ultrasonic Ranger 例程](https://github.com/sipeed/MaixPy-v1_scripts/tree/master/modules/grove/ultrasonic)
|
||||
|
||||
## 更多
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user