随笔分类 -  MicroPython

摘要:转换宏 map查找接口 阅读全文
posted @ 2022-05-07 09:37 壹点灵异 阅读(42) 评论(0) 推荐(0) 编辑
摘要:查找文件中的模块注册标记MP_REGISTER_MODULE pattern = re.compile(r"[\n;]\s*MP_REGISTER_MODULE(.?),\s(.?),\s(.?);", flags=re.DOTALL) def find_module_regist 阅读全文
posted @ 2022-05-06 19:08 壹点灵异 阅读(109) 评论(0) 推荐(0) 编辑
摘要:脚本使用格式 python py/makeqstrdefs.py [command] [mode] [input-file] [output-directory] [output-file] command: pp, split, cat mode: qstr, compress 输入选项解析 if 阅读全文
posted @ 2022-05-06 11:42 壹点灵异 阅读(170) 评论(0) 推荐(0) 编辑
摘要:转义非字母数字的字符,转义结果为预定义字符串codepoint2name[] def qstr_escape(qst): def esc_char(m): c = ord(m.group(0)) try: name = codepoint2name[c] except KeyError: name 阅读全文
posted @ 2022-05-05 19:49 壹点灵异 阅读(270) 评论(0) 推荐(0) 编辑
摘要:用法 $ python makeversionhdr.py mpversion.h 实现 带git仓 get_version_info_from_git 使用git指令: git describe --tags 获取最近一次的Tag git rev-parse --short HEAD 获取最近一次 阅读全文
posted @ 2022-05-05 10:05 壹点灵异 阅读(69) 评论(0) 推荐(0) 编辑
摘要:【来源】https://www.eemaker.com/micropython-type.html 阅读全文
posted @ 2021-05-19 15:57 壹点灵异 阅读(91) 评论(0) 推荐(0) 编辑
摘要:【来源】https://www.eemaker.com/micropython-c-modfunc.html 阅读全文
posted @ 2021-05-19 15:53 壹点灵异 阅读(66) 评论(0) 推荐(0) 编辑
摘要:【来源】https://www.eemaker.com/micropython-add-module.html 阅读全文
posted @ 2021-05-19 15:51 壹点灵异 阅读(120) 评论(0) 推荐(0) 编辑
摘要:【来源】https://www.eemaker.com/micropython-c-kuangjia.html 阅读全文
posted @ 2021-05-19 15:48 壹点灵异 阅读(99) 评论(0) 推荐(0) 编辑
摘要:【来源】https://www.eemaker.com/micropython-mp-toc.html 阅读全文
posted @ 2021-05-19 15:40 壹点灵异 阅读(114) 评论(0) 推荐(0) 编辑
摘要:lv_micropython/ports/unix make 报错 编译环境如下 这是缺少SDL2库导致的 sudo apt-get install libsdl2-2.0 sudo apt-get install libsdl2-dev 安装时可能会遇到如下问题 【解决办法】 在ubuntu系统终 阅读全文
posted @ 2021-03-15 23:11 壹点灵异 阅读(644) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示