{"id":13443058,"url":"https://github.com/sipeed/MaixPy-v1","last_synced_at":"2025-03-20T15:33:31.590Z","repository":{"id":40005156,"uuid":"154797251","full_name":"sipeed/MaixPy-v1","owner":"sipeed","description":"MicroPython for K210 RISC-V, let's play with edge AI easier","archived":false,"fork":false,"pushed_at":"2024-03-06T16:54:10.000Z","size":57168,"stargazers_count":1659,"open_issues_count":140,"forks_count":434,"subscribers_count":94,"default_branch":"master","last_synced_at":"2024-04-13T16:07:02.068Z","etag":null,"topics":["aiot","edge-ai","firmware","k210","maixpy","micropython","riscv"],"latest_commit_sha":null,"homepage":"https://wiki.sipeed.com/maixpy","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sipeed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-26T07:48:11.000Z","updated_at":"2024-05-30T06:13:32.772Z","dependencies_parsed_at":"2022-06-26T04:14:57.034Z","dependency_job_id":"edaf5493-28a3-4ab7-887f-5c8750b1222f","html_url":"https://github.com/sipeed/MaixPy-v1","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipeed%2FMaixPy-v1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipeed%2FMaixPy-v1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipeed%2FMaixPy-v1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipeed%2FMaixPy-v1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sipeed","download_url":"https://codeload.github.com/sipeed/MaixPy-v1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221779810,"owners_count":16879012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiot","edge-ai","firmware","k210","maixpy","micropython","riscv"],"created_at":"2024-07-31T03:01:55.448Z","updated_at":"2024-10-28T04:30:17.005Z","avatar_url":"https://github.com/sipeed.png","language":"Python","readme":"\u003cimg height=230 src=\"assets/image/maixpy.png\"\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv class=\"title_pic\"\u003e\n    \u003cimg src=\"assets/image/sipeed_logo.svg\"  style=\"margin-right: 10px;\" height=45\u003e \u003cimg src=\"assets/image/micropython.png\" height=50\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003ca href=\"https://github.com/sipeed/MaixPy/actions\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/workflow/status/Sipeed/MaixPy/compile%20test%20and%20publish?style=for-the-badge\" alt=\"Master branch build status\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://dl.sipeed.com/MAIX/MaixPy/release/master/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/download-master-ff69b4.svg?style=for-the-badge\" alt=\"master build firmware\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/sipeed/MaixPy/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/release/sipeed/maixpy.svg?style=for-the-badge\" alt=\"Latest release version\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/sipeed/MaixPy/blob/master/LICENSE.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-Apache%20v2.0-orange.svg?style=for-the-badge\" alt=\"License\" /\u003e\n\u003c/a\u003e\n\n\u003cbr /\u003e\n\n\u003ca href=\"https://github.com/sipeed/MaixPy/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+label%3A%22good+first+issue%22\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/sipeed/maixpy/good%20first%20issue.svg?style=for-the-badge\" alt=\"Good first issues\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/sipeed/MaixPy/issues?q=is%3Aopen+is%3Aissue+label%3Abug\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/sipeed/maixpy/bug.svg?style=for-the-badge\" alt=\"Bug issues\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/sipeed/MaixPy/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/sipeed/maixpy/enhancement.svg?style=for-the-badge\" alt=\"Enhancement issues\" /\u003e\n\u003c/a\u003e\n\n\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n[中文](README_ZH.md)\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n**Let's Sipeed up, Maximize AI's power!**\n\n**MaixPy, makes AIOT easier!**\n\nMaixpy is designed to make AIOT programming easier, based on the [Micropython](http://www.micropython.org) syntax, running on a very powerful embedded AIOT chip [K210](https://kendryte.com).\n\nThere are many things you can do with MaixPy, please refer to [here](https://maixpy.sipeed.com/en/others/what_maix_do.html)\n\n\u003e K210 brief: \n\u003e * Image Recognition with hardware AI acceleration\n\u003e * Dual core with FPU\n\u003e * 8MB(6MB+2MB) RAM\n\u003e * 16MB external Flash\n\u003e * Max 800MHz CPU freq (see the dev board in detail, usually 400MHz)\n\u003e * Microphone array(8 mics)\n\u003e * Hardware AES SHA256\n\u003e * FPIOA (Periphrals can map to any pins)\n\u003e * Peripherals: I2C, SPI, I2S, WDT, TIMER, RTC, UART, GPIO etc.\n\n\u003cimg src=\"assets/image/maix_bit.png\" height=500 alt=\"maix bit\"/\u003e\n\n\n## Simple code\n\nFind I2C devices:\n\n```python\nfrom machine import I2C\n\ni2c = I2C(I2C.I2C0, freq=100000, scl=28, sda=29)\ndevices = i2c.scan()\nprint(devices)\n```\n\nTake picture:\n\n```python\nimport sensor\nimport image\nimport lcd\n\nlcd.init()\nsensor.reset()\nsensor.set_pixformat(sensor.RGB565)\nsensor.set_framesize(sensor.QVGA)\nsensor.run(1)\nwhile True:\n    img=sensor.snapshot()\n    lcd.display(img)\n```\n\nUse AI model to recognize object:\n```python\nimport KPU as kpu\nimport sensor\n\nsensor.reset()\nsensor.set_pixformat(sensor.RGB565)\nsensor.set_framesize(sensor.QVGA)\nsensor.set_windowing((224, 224))\n\nmodel = kpu.load(\"/sd/mobilenet.kmodel\")  # load model\nwhile(True):\n    img = sensor.snapshot()               # take picture by camera\n    out = kpu.forward(task, img)[:]       # inference, get one-hot output\n    print(max(out))                       # print max probability object ID\n```\n\u003e please read doc before run it\n\n## Release\n\nSee [Releases page](https://github.com/sipeed/MaixPy/releases)\n\nGet latest commit firmware: [master firmware](http://dl.sipeed.com/MAIX/MaixPy/release/master/)\n\nCustom your firmware, see [build](#build-from-source) or use [online custom tool](#use-online-compilation-tools-to-customize-firmware)\n\n## Documentation\n\nDoc refer to [maixpy.sipeed.com](https://maixpy.sipeed.com)\n\n## Examples\n\n[MaixPy_scripts](https://github.com/sipeed/MaixPy_scripts)\n\n## Build From Source\n\nSee [build doc](build.md)\n\nThe historic version see [historic branch](https://github.com/sipeed/MaixPy/tree/historic) (No longer maintained, just keep commit history)\n\n## Use online compilation tools to customize firmware\n\nGo to [maixhub.com](https://www.maixhub.com/compile.html) to use online compilation to customize the functions you need\n\n\n## Model hub: Maixhub.com\n\nFind more models on [Maixhub.com](https://maixhub.com)\n\n\n## License\n\nSee [LICENSE](LICENSE.md) file\n\n\n## Other: As C SDK for C developers\n\n\nIn addition to the source code of the `MaixPy` project, since `MaixPy` exists as a component, it can be configured to not participate in compilation, so this repository can also be developed as `C SDK`. For the usage details, see [Building Documentation](build.md), which can be started by compiling and downloading `projects/hello_world`.\n\nThe compilation process is briefly as follows:\n\n```\nwget http://dl.cdn.sipeed.com/kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz\nsudo tar -Jxvf kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz -C /opt\ncd projects/hello_world\npython3 project.py menuconfig\npython3 project.py build\npython3 project.py flash -B dan -b 1500000 -p /dev/ttyUSB0 -t\n```\n\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipeed%2FMaixPy-v1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsipeed%2FMaixPy-v1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipeed%2FMaixPy-v1/lists"}