1 Star 0 Fork 0

ZAllureeee / MaixPy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0



Master branch build status master build firmware Latest release version License
Good first issues Bug issues Enhancement issues

English



MaixPy, 让 AIOT 更简单~

Maixpy 的目的是让 AIOT 编程更简单, 基于 Micropython 语法, 运行在一款有着便宜价格的高性能芯片 K210 上.

K210 简介 :

  • 拥有硬件加速的图像识别
  • 带硬件浮点运算的双核处理器
  • 8MB(6MB+2MB) 内存
  • 16MB 外置 Flash
  • 芯片 CPU 最高可达 800MHz 主频 (开发板支持最高主频具体看开发板介绍)
  • 麦克风阵列支持(8个麦克风)
  • 硬件 AES SHA256 支持
  • FPIOA (每个外设可以映射到任意引脚)
  • 外设: I2C, SPI, I2S, WDT, TIMER, RTC, UART, GPIO 等等

简单易懂的代码

寻找 I2C 设备:

from machine import I2C

i2c = I2C(I2C.I2C0, freq=100000, scl=28, sda=29)
devices = i2c.scan()
print(devices)

拍照:

import sensor
import image
import lcd

lcd.init()
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.run(1)
while True:
    img=sensor.snapshot()
    lcd.display(img)

固件发布

发布版本固件: 固件发布页面

最新提交(开发中)的固件: master 分支的固件

文档

查看 maixpy.sipeed.com

例示代码

MaixPy_scripts

从源码构建自己的固件

参考 构建文档

旧的构建版本请见 historic 分支 (不再维护,仅仅为了保留提交记录)

开源协议

查看 LICENSE 文件

其它: 使用本仓库作为 SDKC 语言开发

本仓库除了作为 MaixPy 工程的源码存在以外, 由于MaixPy作为一个组件存在, 可以配置为不参与编译, 所以也可以作为 C SDK 来进行开发, 使用方法见 构建文档, 可以从编译下载projects/hello_world开始

大致上编译下载过程如下:

wget http://dl.cdn.sipeed.com/kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz
sudo tar -Jxvf kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz -C /opt
cd projects/hello_world
python3 project.py menuconfig
python3 project.py build
python3 project.py flash -B dan -b 1500000 -p /dev/ttyUSB0 -t
License ====== All the source code in this repository is released under MIT or Apache v2.0 license. All the sources related to MicroPython and openomv are under MIT license. All the sources created/modified by the repository owner are released under Apache v2.0 license and contains the following copyright notice: Copyright 2019 Sipeed Co.,Ltd. Most of the source files contains license and copyright notice, please check the individual files for more information. Also check the license information in individual components directories. ``` The MIT License (MIT) Copyright (c) 2013, 2014 Damien P. George Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` ``` Copyright 2019 Sipeed Co.,Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` ``` The MIT License (MIT) Copyright (c) 2014 Ibrahim Abdelkader <i.abdalkader@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE ```

简介

暂无描述 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zallureeee/MaixPy.git
git@gitee.com:zallureeee/MaixPy.git
zallureeee
MaixPy
MaixPy
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891