随笔分类 - MicroPython
摘要:转换宏 map查找接口
阅读全文
摘要:查找文件中的模块注册标记MP_REGISTER_MODULE pattern = re.compile(r"[\n;]\s*MP_REGISTER_MODULE;", flags=re.DOTALL) def find_module_regist
阅读全文
摘要:脚本使用格式 python py/makeqstrdefs.py [command] [mode] [input-file] [output-directory] [output-file] command: pp, split, cat mode: qstr, compress 输入选项解析 if
阅读全文
摘要:转义非字母数字的字符,转义结果为预定义字符串codepoint2name[] def qstr_escape(qst): def esc_char(m): c = ord(m.group(0)) try: name = codepoint2name[c] except KeyError: name
阅读全文
摘要:用法 $ python makeversionhdr.py mpversion.h 实现 带git仓 get_version_info_from_git 使用git指令: git describe --tags 获取最近一次的Tag git rev-parse --short HEAD 获取最近一次
阅读全文
摘要:【来源】https://www.eemaker.com/micropython-type.html
阅读全文
摘要:【来源】https://www.eemaker.com/micropython-c-modfunc.html
阅读全文
摘要:【来源】https://www.eemaker.com/micropython-add-module.html
阅读全文
摘要:【来源】https://www.eemaker.com/micropython-c-kuangjia.html
阅读全文
摘要:【来源】https://www.eemaker.com/micropython-mp-toc.html
阅读全文
摘要:lv_micropython/ports/unix make 报错 编译环境如下 这是缺少SDL2库导致的 sudo apt-get install libsdl2-2.0 sudo apt-get install libsdl2-dev 安装时可能会遇到如下问题 【解决办法】 在ubuntu系统终
阅读全文