Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:iot:examples:quickstart:qs1 [2022/02/28 13:44] – created ingmar05en:iot:examples:quickstart:qs1 [2023/03/01 21:52] (current) – removed raivo.sell
Line 1: Line 1:
-====== Installing Visual Studio Code with PlatformIO and creating your first project ====== 
  
-Download VS Code from [[https://code.visualstudio.com/|here]] 
- 
-=====Install Python on Windows===== 
- 
-Download Python from [[https://www.python.org/downloads/|here]] 
- 
-Before installing check the **Add Python to PATH** 
- 
-{{:en:iot:examples:setup:check.png?200|}} 
- 
-=====Install Python on Linux===== 
- 
-Open terminal and check if you have Python 3 installed. 
- 
-<code> 
-$ python3 --version 
-</code> 
- 
-If you don't have Python 3 installed then run the following command. 
-<code> 
-$ sudo apt install python3 
-</code> 
- 
-Wether you already had Python installed or not, you need to run the following command. 
-<code> 
-$ sudo apt install python3-distutils 
-</code> 
- 
-=====Installing PlatformIO IDE on VS Code===== 
- 
-  - Click on the **Extensions** icon or press **Ctrl+Shift+X** to open the extensions tab 
-  - Search for "PlatformIO IDE" 
-  - Select the first option 
-  - Click the **Install** button 
- 
-{{:en:iot:examples:setup:installplatformio.png?600|}} 
- 
-After installing make sure the extension is enabled. 
- 
-{{:en:iot:examples:setup:enabled.png?600|}} 
- 
-After that, the PlatformIO icon should show up on the left sidebar as well as an **Home** icon that redirects you to PlatformIO home. 
- 
-{{:en:iot:examples:setup:home.png?600|}} 
- 
-=====Using PlatformIO IDE===== 
- 
-On VS Code, click on the PlartfomIO **Home** icon. Click on **+ New Project** to start a new project. 
- 
-{{:en:iot:examples:setup:new-project.png?600|}} 
- 
-Give your project a name, select the board **WeMos D1 MINI ESP32 (WEMOS)** and the framework as **Arduino** 
- 
-{{:en:iot:examples:setup:projectwizard.png?600|}} 
- 
-After finishing the setup the project should be accessible from the explorer tab. 
- 
-{{:en:iot:examples:setup:explorer.png?600|}} 
- 
-====platformio.ini file==== 
- 
-The **platformio.ini** file is the PlatformIO Configuration File for your project. It shows the platform, board, and framework for your project. You can also add other configurations like libraries to be included, upload options, changing the Serial Monitor baud rate and other configurations. 
- 
-{{:en:iot:examples:setup:platformioini.png?600|}} 
- 
-====src folder==== 
- 
-The **src** folder is your working folder. Under the src folder, there’s a main.cpp file. That’s where you write your code. Click on that file. The structure of an Arduino program should open with the setup() and loop() functions. 
- 
-{{:en:iot:examples:setup:src.png?600|}} 
- 
-In PlatformIO, all your Arduino sketches should start with the <code>#include <Arduino.h></code> 
- 
-=====Uploading code using PlatformIO IDE===== 
- 
-To test and upload your code first save your code and then click on the **Build** icon on the bottom of the editor to verify that your code can be ran. After a successful build press the **Upload** icon. Alternatively, you can got to the **PIO Project Tasks** menu and select build or upload from there.. 
- 
-{{:en:iot:examples:setup:buildupload.png?600|}} 
en/iot/examples/quickstart/qs1.1646055884.txt.gz · Last modified: 2022/02/28 10:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0