The content of this article is about how to use Notepad instead of Arduino IDE? (Detailed explanation with pictures and text), has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
The IDE that comes with Arduino is too difficult to use, the indentation is ugly, there is no prompt function, the support for Chinese is not good, and it is all difficult to use::> ;_<::.
This article will introduce the use of Notepad, a lightweight free text editor, to create a powerful and intelligent Arduino development environment to realize code editing, compilation, uploading and other functions, allowing everyone to completely Get rid of Arduino IDE troubles.
Let’s take a picture first to let everyone feel it!
1. Notepad (download: http://www.php.cn/xiazai/gongju/92 )
2. Arduino IDE (it is recommended to use the latest version)
3. Notepad.Arduino.0.2.0 plug-in package
Link: http://sourceforge.net/ projects/narduinoplugin/
Baidu Cloud: http://pan.baidu.com/s/1qY4vQTe Password: 78tu
1. Install Notepad
2. Unzip Notepad .Arduino.0.2.0 as follows
##3. Click [Language] on the menu bar of Notepad-->[Customize language Format], click [Import] in the pop-up dialog box, select theArduino_language_0.2.0.xml file in the Notepad .Arduino.0.2.0 plug-in package extracted above, and import Just close the dialog box when finished.
4. Copy the two files under APIs in the plug-in package to the APIs under plugins under Notepad5. Open Notepad, menu bar [Plug-in]->[Plugin Manager]->[Show Plugin Manager], find
NppExec, and install it.
6. Open Notepad, go to [Language]-> in the menu bar and find [Arduino] at the bottom, select it. Start writing a simple arduino code (code prompts can be implemented currently, but there will be more powerful ones later). 7. Edit 2 execution scriptsAfter the above code is written, press F6 to execute the code, and the following dialog box will pop up## Select
temporary script at #1 to create a new script. Enter the following script at 2
NPP_SAVE"H:\Arduino\arduino-1.6.8-windows\arduino-1.6.8\arduino_debug.exe" --verify "$(FULL_CURRENT_PATH)"
Explain: The format of the second line is as follows:
The path of arduino_debug.exe in your arduino installation directory [space] --verify [space]
"$(FULL_CURRENT_PATH) "
NPP_SAVE"H:\Arduino\arduino-1.6.8-windows\arduino-1.6.8\arduino_debug.exe" --upload "$(FULL_CURRENT_PATH)"
In this way we have 2 scripts, one for compiling and downloading the Arduino program.
Verify whether the previous work is correct: after writing the code, press F6, the dialog box that pops up will let us choose the script to execute, first select Arduino_verify, click OK, compile, this time The compilation information will appear in the Notepad console. Press F6 again, select Arduino_upload, click OK, and upload. The upload information will also be displayed in the Notepad console.Process started >>> Looking for library 'user32' Adding paths from jna.library.path: null Trying user32.dll Found library 'user32' at user32.dll DPI detection failed, fallback to 96 dpi Looking for library 'shell32' Adding paths from jna.library.path: null Trying shell32.dll Found library 'shell32' at shell32.dll Looking for library 'Ole32' Adding paths from jna.library.path: null Trying Ole32.dll Found library 'Ole32' at Ole32.dll 正在加载配置... 正在初始化包... 正在准备开发板... 正在验证...
FingerText ,Install.
After the installation is complete, click: [Plug-in]->[FingerText]->[Toggle on/off SnippetDock], the following will be displayed on the right side of the editing area:点击上面的【Create snippet From Selection】,出现如下页面。
对于每一条缩略字补全规则,我们需要填写 红色箭头 所指的3个区域。
第一:缩略词。根据你自己的喜好,建立缩略词与完整代码的映射关系,如dw --> digitalWrite()
第二:这个规则生效的环境。可以是 GLOBAL, Lang:xxx, Ext.xxx
GLOBAL 表示对于所有语言,所有后缀格式的文件,都生效。
Lang:HTML 表示对HTML语言生效,Lang:java表示对java语言生效。
Ext:ino 表示对文件后缀后ino 的文件生效(Arduino主sketch的后缀就是ino) 。Ext:cpp对cpp后缀生效。
第三:缩略词对应的完整代码。
在完整代码中可以使用 $[![]!] 来定位热点光标。补全后,使用tab键可以依次按序定位到热点。还可以使用带名称的热点,名称填写可选的值。
如: $[![pin]!] $[![OUTPUT]!] ,补全后,按下tab,就可以定位到带名字的热点pin,再按下,就会定位到下一个带名字的热点OUTPUT。
每条完整代码后面都要使用 [>END<] 标记结束
注意:如果补全规则有中文,且出现补全后乱码的现象,请在【Create snippet From Selection】页面,设置Notepad++的语言编码方式(菜单栏【编码】),让他和你的源代码的编码方式一致。
编辑完成后,按下ctl +S 或者【Save current snippet】按钮保存即可。如需再添加,再点击图中的 【New Snippet】。
安装方法:菜单栏【插件】->【Plugin Manager】- >【Show Plugin Manager】,找到Explorer,安装。点击红心旁边的按钮就可以打开。
openjumper的串口监视器软件。这个是我目前找到的能够兼容Arduino的串口监视软件,它是专门为Arduino写的,但是里面有广告。
链接:http://pan.baidu.com/s/1ge7fRHL 密码:wdks
也可以到官网下载。
1、Arduino在执行编译和上传脚本时,会加载当前开发板的相关配置信息。这个配置文件在【Arduino IED】 ->【文件】->【首选项】面板的最下面的一个文件路径,点击后里面有个preference.txt,这个就是编译和上传时的配置文件。
在Arduino IDE中我们可以在选项卡里面配置,但是Notepad++则没有这个功能,如果你的开发配置改变了(换了不同型号Ardunio板,或则端口等),则需要打开Arduino IDE,进行配置,配置好以后,关闭Arduino IDE,对应的配置就保存到preference.txt中去了,这个时候Notepad++就能加载正确的配置,就可以使用Notepad++编译和上传了。
2、在使用Arduino IDE 建立工程时,要遵守以下规范:主sketch所在的文件夹名要和主sketch名一致! 假如编写一个 LED 的闪烁程序。
/workspace //arduino的工作目录 /blink //当前工程的目录 blink.ino //arduino源文件,和当前工程目录名称一样。
The above is the detailed content of How to use Notepad++ instead of Arduino IDE? (Detailed explanation with pictures and text). For more information, please follow other related articles on the PHP Chinese website!