-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
151 changed files
with
3,052 additions
and
1,443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ | |
hardware.rst | ||
drive.rst | ||
mpythonX.rst | ||
mpython2.rst | ||
flashburn.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,169 +1,4 @@ | ||
mPython X IDE | ||
==================== | ||
|
||
软件安装 | ||
----------- | ||
|
||
目前最新版本为0.3.2,支持Windows 7/8/10、Windows XP、Macos、树莓派、虚谷号: | ||
|
||
http://static.steamaker.cn/files/mpythonx-0.3.2-win.exe | ||
(Win 7 / 8 / 10) | ||
|
||
http://static.steamaker.cn/files/mpythonx-0.3.2-xp.exe | ||
(Win XP) | ||
|
||
http://static.steamaker.cn/files/mpythonx-0.3.2-mac.zip | ||
(Mac OS) | ||
|
||
http://static.steamaker.cn/files/mpythonx-0.3.2-arm.tar.gz | ||
(树莓派) | ||
|
||
http://static.steamaker.cn/files/mpythonx-0.3.2-arm64.tar.gz | ||
(虚谷号,待测试) | ||
|
||
附:掌控板的Mac驱动 | ||
|
||
https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip | ||
|
||
.. Hint:: | ||
|
||
安装过程有可能被杀毒软件误报病毒,需要选择“允许程序所有操作”。 | ||
|
||
|
||
安装软件的最后一步,会自动安装CP210x的驱动,如果先前安装过则可以忽略。 | ||
|
||
.. image:: /images/software/software_2.png | ||
|
||
|
||
|
||
接入硬件 | ||
----------- | ||
|
||
点击桌面快捷方式mPythonX,打开软件主界面。 | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_1.png | ||
|
||
|
||
用USB线接入掌控板。正确识别后,“连接串口”处会出现COM口,如下图: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_2.png | ||
|
||
|
||
|
||
上述顺序可以颠倒,即:可以先接入掌控,再打开软件。 | ||
|
||
|
||
图形编辑区 | ||
----------- | ||
|
||
保存 | ||
```````` | ||
|
||
“保存代码”只保存程序对应的代码,后缀为py: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_3.png | ||
|
||
点击“本机读取”,加载保存的py文件: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_5.png | ||
|
||
读取效果如图: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_4.png | ||
|
||
“保存模块”保存程序对应的代码及图形化模块,后缀为xml: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_6.png | ||
|
||
点击“本机读取”,加载保存的xml文件,读取效果如图: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_7.png | ||
|
||
模块提示 | ||
```````` | ||
鼠标停留在模块上会有提示: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_8.png | ||
|
||
帮助文档 | ||
```````` | ||
在模块上,点击鼠标右键: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_9.png | ||
|
||
点击帮助,即可跳转至帮助文档: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_10.png | ||
|
||
切换图形/代码模式 | ||
```````` | ||
|
||
点击“代码模式”/“图形模式”,即可实现对应切换: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_11.png | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_12.png | ||
|
||
改变图形区/代码区大小 | ||
```````` | ||
|
||
鼠标停留在圈红的灰色三角上,按住左键左右拖动即可: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_13.png | ||
|
||
|
||
代码编辑区 | ||
----------- | ||
|
||
代码联想: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_14.png | ||
|
||
|
||
运行/刷入 | ||
----------- | ||
|
||
运行/刷入 | ||
```````` | ||
|
||
运行/刷入两种模式皆可实现程序效果。 | ||
|
||
点击“连接串口”,按钮字样变成“断开连接”,即可开始运行/刷入: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_15.png | ||
|
||
.. Note:: | ||
|
||
“运行”的代码脱机后即失效,“刷入”的代码脱机后再次连接电源仍有效 | ||
|
||
代码查错 | ||
```````` | ||
|
||
圈红处是反馈的信息,包括硬件信息、代码报错信息等: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_16.png | ||
|
||
比如,红字为代码报错信息: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_17.png | ||
|
||
读出上一次刷入的代码 | ||
```````` | ||
|
||
点击“从掌控读出”即可读出上一次刷入的代码。 | ||
|
||
|
||
恢复固件 | ||
----------- | ||
|
||
点击“恢复固件”,按照提示操作: | ||
|
||
.. image:: /images/software/mPythonX/mPythonX_18.png | ||
|
||
.. Hint:: | ||
|
||
如果恢复固件失败(或超过30秒仍然一直在恢复),请先尝试关闭杀毒软件,或者选择信任esptool。 | ||
|
||
|
||
|
||
|
||
https://mpythonx.readthedocs.io/zh_CN/latest/mPythonX.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
呼吸灯 | ||
============= | ||
|
||
.. literalinclude:: /../examples/pin/breathing_light.py | ||
:linenos: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
:maxdepth: 1 | ||
:numbered: | ||
|
||
breathing_light.rst | ||
musicbox.rst | ||
lux&sound_Cal.rst | ||
dht11.rst | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.