pikapython/doc/5.我就要用最便宜的单片机来跑python,还要用Keil开发,怎么地吧.md

43 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

我就想用单片机跑个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)