In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor will share with you the relevant knowledge points about how to install and configure native Arduino, VSCode and Clion. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
1. Native Arduino installation and configuration
Can be downloaded from the official website
Arduino official website address: https://www.arduino.cc/
Just install Next directly, and some drivers will be installed at the same time. After the installation is complete, open IDE and add support for the 8266 development board.
STEP.1 opens "File"-> "preferences" and fill in the "additional development board management URL" with the address of 8266: http://arduino.esp8266.com/stable/package_esp8266com_index.json
STEP.2 opens tools-> Development Board-> Development Board Manager-> search for "8266" and install
If you cannot download due to network problems, you can also download the offline version: https://www.arduino.cn/resource-cat-162-1.html in the arduino Chinese community.
STEP.3, open "tools"-> "Development Board"-> Select the corresponding development board (here I bought the NodeMCU development board)
Once selected, there will be many more detailed settings for the development board under the tools menu
STEP.4 modifies the port to be the COM port connected to the development board, which can be selected according to the port in the list of win hardware devices.
Development and operation
At this point, the development environment of native arduino has been built, write a piece of test code and run it.
Void setup () {/ / set D4 pin to output mode pinMode (D4, OUTPUT);} void loop () {/ / set high and low voltage digitalWrite (D4, HIGH) to D4 pin at 200ms interval; delay (200); digitalWrite (D4, LOW); delay (200);}
Click "upload button"
Waiting for compilation and upload
Connect a light-emitting diode to the D4 pin and the GND pin of the 8266 development board, and you can see the diode flicker when powered on.
Installation and configuration of 2.VSCode + PlatformIO IDE
Download IDE: https://code.visualstudio.com/ on VSCode's official website
Add the plugin PlatformIO IDE after the download is complete
After installing the plug-in, the editor will continue to install PlatformIO-core until the following icon appears in the status bar to indicate that the installation is complete.
Development and operation
At this point, the arduino development environment for VSCode has been built. Click the HOME icon on the status bar, and the PlatformIO HOME interface will pop up. Through this interface, you can create a new project.
Fill in the project name, the development board model and the frame used in the project creation wizard. If you need to specify a directory, just remove the options shown in the arrow below.
Similar to the native arduino environment, operating the corresponding icon in the status bar can realize the function of compiling and uploading the code to the development board
Installation and configuration of 3.Clion + PlatformIO IDE
Download IDE: https://www.jetbrains.com/clion/ on JetBrains's official website
Add the plugin PlatformIO for Clion after the download is complete
Restart the editor after installing the plug-in, click New Project, and you will find that there is an option for PlatformIO in the New Project dialog box, but instead of creating a new project later, a warning line is displayed: PlatformIO utility is not found. This means that PlatformIO-core is not installed or the editor cannot find the path to PlatformIO-core.
The solution was found in this blog post: write esp32s in platformioclion from scratch
In fact, it is also mentioned in the official documentation that you need to download a python script to install.
Official document: https://docs.platformio.org/en/latest/core/installation.html#local-download-mac-linux-windows
Add the path in the following figure to the system variable PATH after the installation is complete, and then restart the Clion editor
Development and operation
After restarting the editor, click New Project, select PlatformIO, select the development board model and the development framework used, and then you can create a new project.
Similarly, Clion's PlatformIO plug-in also supports compiling and uploading to the development board.
These are all the contents of this article entitled "how to install and configure Native Arduino, VSCode and Clion". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.