Fetch the repository succeeded.
这个仓库是为了能够在鸿蒙设备上使用 Python 进行应用程序开发而创建。
0. 使用Python开发鸿蒙设备程序(0-初体验)
1. 使用Python开发鸿蒙设备程序(1-GPIO外设控制)
2. 使用Python开发鸿蒙设备程序(2-I2C应用实例)
这个仓库的 Baseline 是 MicroPython v1.13,在 MicroPython 的基础上进行了必要的剪裁以满足 OpenHarmony 上的应用开发需求。
static void* DTPython_Demo_Task(const char* arg)
{
printf("[dt4sw] DTPython_Demo_Task()\n");
PrepareScript("main.py", c_main_py); // 在设备上创建文件:main.py
PrepareScript("test.py", c_test_py); // 在设备上创建文件:test.py
PrepareScript("another.py", c_another_py); // 在设备上创建文件:another.py
DTPython_Init(); // 初始化Python环境
DTPython_RunCode("print(\'Python Code Begin\')"); // 执行Python语句:print('Python Code Begin')
DTPython_RunCode("s = \'Created by Delphi Tang\'"); // 执行Python语句:s = 'Created by Delphi Tang'
DTPython_RunCode("print(s)"); // 执行Python语句:print(s)
DTPython_RunFile("main.py"); // 执行Python文件:main.py
DTPython_RunCode("print(\'Python Code End\')"); // 执行Python语句:print('Python Code End')
DTPython_Deinit(); // 清理Python环境
return (void*)arg;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.