mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
43 lines
1.9 KiB
Markdown
43 lines
1.9 KiB
Markdown
|
||
|
||
我就想用单片机跑个Python,得用linux虚拟机+交叉编译工具链+命令行编译micropython固件,还得用DfuSe工具烧录固件,烧录完还不能用C的调试器来调试。
|
||
|
||
我想拓展个自己的C模块,还要学着用一些完全看不懂的宏函数,还得手动注册,还得编写makeFile,编译完照样不能调试C。
|
||
|
||
我穷,买不起STM32F4,想买个STM32F103C8T6的micropython开发板,淘宝一搜,好像没有。
|
||
|
||
现在C8T6贵了,我还想用F0,用G0,能行吗?
|
||
|
||
好像,给G0移植micropython,不是很容易。
|
||
|
||
那?有没有另一种玩法?
|
||
|
||
换句话说,我想用Keil开发,用Keil调试,我还想用最便宜的单片机。
|
||
|
||
这,能玩Python吗?
|
||
|
||
![output_Kgj52R](https://user-images.githubusercontent.com/88232613/132941900-985ebc9e-fb65-48f6-8677-d3ebc65422ee.gif)
|
||
|
||
要不,试试PikaScript?
|
||
|
||
啥是PikaScript?
|
||
|
||
PikaScript可以为资源受限的mcu提供极易部署和拓展的Python脚本支持。
|
||
|
||
PikaScript支持裸机运行,最低可运行于 RAM ≥ 4kB ,FLASH ≥ 32kB 的mcu中,推荐配置为 RAM ≥ 10kB, FLASH ≥ 64kB,像是stm32f103c8t6、stm32g070RBT6这些完全没有压力,甚至已经满足了推荐配置。
|
||
|
||
而且支持Keil、IAR、rt-thread studio、segger embedded studio等IDE开发,零依赖,零配置,开箱即用,极易集成进已有的C工程。
|
||
|
||
说了这么多,刘华强就有疑问了,你说这脚本,保熟吗?
|
||
|
||
![QQ截图20210911174017](https://user-images.githubusercontent.com/88232613/132943648-fbd5254e-6264-4180-87d7-6ab3d3cc4f12.png)
|
||
|
||
我这开~~水果~~脚本摊儿的,能买你生脚本蛋子?
|
||
|
||
这就挑几个Demo给哥儿几个看看。
|
||
|
||
![Hnet-image (2)](https://user-images.githubusercontent.com/88232613/132943428-f2b365ca-140e-42f4-936c-db6a7d9f8dee.gif)
|
||
|
||
![Hnet-image (3)](https://user-images.githubusercontent.com/88232613/132943365-0f7059b3-4f9d-4989-a5ec-2cce72b0cc96.gif)
|
||
|