Cov txheej txheem:

Nws Hloov Dub! VS Code: 16 Kauj Ruam
Nws Hloov Dub! VS Code: 16 Kauj Ruam

Video: Nws Hloov Dub! VS Code: 16 Kauj Ruam

Video: Nws Hloov Dub! VS Code: 16 Kauj Ruam
Video: NWS HAIB HEEV HMONG DUBBED KOREAN MOVIE 2024, Kaum ib hlis
Anonim
Image
Image
Software thiab Cov Ntaub Ntawv Siv
Software thiab Cov Ntaub Ntawv Siv

Hnub no, peb yuav tham txog PlatformIO. Nov yog cov cuab yeej siv qib siab nrog ntau qhov tshwj xeeb uas "txuas" nws siv rau Visual Studio Code. Kuv xav txog lub ncauj lus no me ntsis ua ntej, thiab yog li, kuv hais qhia siv cov khub no rau cov lej uas muaj ntau dua 200 kab. Tab sis, qhov ntawd tsuas yog kuv xav xwb. Txhawm rau piav qhia qhov no zoo dua, rau kev suav sau lub microcontroller, VSCode txuas ntxiv (PlatformIO) nkag mus rau Arduino lub moj khaum uas tau teeb tsa hauv koj lub khoos phis tawj.

Tsiv mus raws, hnub no peb tab tom daws qhov zoo ntawm VS Code, nws kev teeb tsa, ntxiv rau txuas ntxiv rau VS Code. Tsis tas li, peb yuav muaj cov lus piav qhia luv luv ntawm PlatformIO lub tsev sib tham, cov cuab yeej, thiab tsim cov phiaj xwm los ntawm kos, xws li kev xa cov phiaj xwm Arduino (.ino) rau hauv PlatformIO.

Kauj Ruam 1: Siv Software thiab Cov Ntaub Ntawv

• Arduino IDE software (yuav tsum tau teeb tsa ua ntej)

• Visual Studio Code Software

• PlatformIO Extension rau VSCode

• Qauv.ino.h thiab.cpp cov ntaub ntawv rau ESP32Note: Peb yuav siv INO code ntawm qhov haujlwm uas tau ua nrog ESP32 LoRa. Txhawm rau ua haujlwm kom raug, Arduino core rau ESP32 yuav tsum tau teeb tsa ua ntej rau ESP32 piv txwv txoj haujlwm uas peb ntshuam.

Hauv lwm lo lus, yog tias koj tsis muaj ESP32 cov tsev qiv ntawv teeb tsa hauv Arduino IDE thiab tsis tuaj yeem suav ua ke hauv Arduino IDE nws tus kheej, koj yuav tsis tuaj yeem suav qhov haujlwm tau nkag mus rau hauv PlatformIO.

Kauj Ruam 2: Kev Tsim Nyog ntawm VSCode Editor

Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor
Kev tsim nyog ntawm VSCode Editor

VS Code muaj ntau qhov zoo. Nws khiav ntawm Mac, Linux, thiab Windows. Yog li, nws tau qhib, thiab nws yog los ntawm Microsoft. Qee qhov ntawm lwm qhov zoo xws li:

• Hide / display code blocks

• Txheeb xyuas cov cai yuam kev thaum sau ntawv

• Pib ua tiav (ctrl + qhov chaw) rau qhov hloov pauv thiab cov hau kev

• Source code minimap

• Kev koom ua ke Git

• Saib

• Txoj Cai Taw Qhia (mus rau qhov chaw teeb tsa)

Kauj ruam 3: Rub Visual Studio Code

Rub tawm Visual Studio Code
Rub tawm Visual Studio Code

Txuas:

code.visualstudio.com/download

Kauj Ruam 4: Kev Nruab Nrig Studio Code

Nrig txog kev pom Studio Code Installation
Nrig txog kev pom Studio Code Installation

• Khiav lub installer

• Nyem Ok

• Ua raws li kev teeb tsa los ntawm nyem Tom ntej no kom tiav

Kauj Ruam 5: Txhim Kho PlatformIO Extension

Txhim kho PlatformIO Extension
Txhim kho PlatformIO Extension
Txhim kho PlatformIO Extension
Txhim kho PlatformIO Extension
Txhim kho PlatformIO Extension
Txhim kho PlatformIO Extension

1. Qhib Visual Studio Code ua tus tswj hwm

2. Ua raws cov theem hauv qab no

Nco tseg: Nws raug pom zoo tias koj nkag mus rau lub khoos phis tawj ua tus tswj hwm tus neeg siv

Nyem lub pob qhia los ntawm xub

Tshawb nrhiav PlatformIO, raws li daim duab.

Nyem ib qho ntawm cov nyees khawm rau nruab thiab tos rau lub installation…

Rov qhib dua kom rov pib dua IDE

Tos rau lub installation…

Kauj Ruam 6: Kev piav qhia luv luv ntawm PlatformIO Home Page

Kev piav qhia luv luv ntawm PlatformIO Home Page
Kev piav qhia luv luv ntawm PlatformIO Home Page

Tom qab rov pib dua VS Code, qhov txuas ntxiv tom qab ntawd twb tau teeb tsa thiab nrov plig plawg yuav qhib, nyob ntawm daim duab.

1. Txoj haujlwm tshiab.

2. Ntshuam Arduino project.

3. Qhib qhov haujlwm uas twb muaj lawm.

4. Qhib qhov piv txwv.

Kauj Ruam 7: Tsim Txoj Haujlwm Tshiab

Tsim Txoj Haujlwm Tshiab
Tsim Txoj Haujlwm Tshiab
Tsim Txoj Haujlwm Tshiab
Tsim Txoj Haujlwm Tshiab
Tsim Txoj Haujlwm Tshiab
Tsim Txoj Haujlwm Tshiab

1. Lub npe ntawm txoj haujlwm.

2. Phaj siv.

3. Cov txheej txheem.

4. Qhov chaw uas txoj haujlwm yuav raug cawm.

Lub neej ntawd nyob ntawm C: Cov Neeg Siv Khoom Siv Cov Ntaub Ntawv PlatformIO Cov Haujlwm.

Xaiv lub npe rau txoj haujlwm thiab tshawb rau pawg thawj coj uas tau siv los ntawm kev ntaus ntawv hauv Pawg Thawj Coj.

Xaiv lub moj khaum uas yuav siv. Peb yuav siv tus qauv Arduino.

Yog tias koj xaiv tseg qhov phiaj xwm mus rau hauv daim nplaub tshev tshwj xeeb, khij lub npov Qhov Chaw thiab xaiv qhov chaw koj xav tau. Hauv peb qhov piv txwv, peb yuav tso nws ua qhov chaw nyob tsis raug, raws li daim duab.

Nyem Finish kom ua tiav txoj haujlwm tsim.

Kauj Ruam 8: Cov Ntaub Ntawv Tseem Ceeb

Cov ntaub ntawv tseem ceeb
Cov ntaub ntawv tseem ceeb

Cov ntaub ntawv tseem ceeb.cpp nyob hauv daim nplaub tshev src, nyob ntawm daim duab.

Koj tuaj yeem ntxig cov tsev qiv ntawv (.h) rau hauv src nplaub tshev nws tus kheej thiab ntshuam lawv rau hauv cov lus hais.

Piv txwv: #include "LibESP32.h"

Kauj ruam 9: PlatformIO Toolbar

PlatformIO Toolbar
PlatformIO Toolbar

1. Ua yuam kev thiab ceeb toom

2. Tsev

3. Tsim (Tsim)

4. Upload (Cov Ntaub Ntawv / Upload)

5. Rub tawm mus rau cov cuab yeej siv deb

6. Ntxuav

7. Xeem (Xeem)

8. Khiav Ua Haujlwm (Qhib qhov chaw tshawb nrhiav los tshawb nrhiav thiab ua tiav, ntxiv rau lwm yam haujlwm xws li Hloov kho lub platform teeb tsa, Debug, Upload, Monitor, thiab lwm yam …)

9. Serial Monitor (Qhib lub serial monitor)

10. Terminal tshiab (Windows PowerShell)

Kauj ruam 10: Ntshuam Arduino Project (.ino) rau hauv PlatformIO

Ntshuam Arduino Project (.ino) Rau Hauv PlatformIO
Ntshuam Arduino Project (.ino) Rau Hauv PlatformIO
Ntshuam Arduino Project (.ino) Rau Hauv PlatformIO
Ntshuam Arduino Project (.ino) Rau Hauv PlatformIO

NCO TSEG: Peb yuav siv INO cov cai ntawm qhov haujlwm ua nrog ESP32 LoRa, tab sis nws tuaj yeem raug xa mus rau lwm lub Arduino IDE-tau tshaj lub rooj tsavxwm, xws li STM, ESP, Arduino, thiab lwm yam.

Kauj Ruam 11: Ntshuam ESP32.ino Project mus rau PlatformIO

Ntshuam ESP32.ino Txoj Haujlwm rau PlatformIO
Ntshuam ESP32.ino Txoj Haujlwm rau PlatformIO
Ntshuam ESP32.ino Txoj Haujlwm rau PlatformIO
Ntshuam ESP32.ino Txoj Haujlwm rau PlatformIO
Ntshuam ESP32.ino Txoj Haujlwm rau PlatformIO
Ntshuam ESP32.ino Txoj Haujlwm rau PlatformIO

Nrhiav lub phaj uas siv. Hauv peb qhov piv txwv, peb tab tom siv daim npav Heltec WiFi LoRa 32.

Txheeb xyuas Kev Siv cov tsev qiv ntawv xaiv. Xaiv qhov chaw nyob nrog txoj haujlwm.ino thiab.h cov ntaub ntawv. Nyem Ntshuam.

Kauj Ruam 12: Tos Txog Thaum Lub Platform IO Tsev Qhib

Tos kom txog thaum Platform IO Tsev Qhib
Tos kom txog thaum Platform IO Tsev Qhib

Cov ntaub ntawv qhov chaw yuav nyob hauv src nplaub tshev. Ua ke, thauj khoom, thiab debug (Serial monitor).

Kauj ruam 13: Ua tiav

Ua tiav!
Ua tiav!

Kauj Ruam 14: Cov Lus Cim thiab Lus Ceeb Toom Txog PlatformIO Txuas Ntxiv

Cov Lus Cim thiab Lus Ceeb Toom Txog PlatformIO Txuas Ntxiv
Cov Lus Cim thiab Lus Ceeb Toom Txog PlatformIO Txuas Ntxiv

• Nws nyob ntawm Arduino lub moj khaum.

• Rov ua dua ib qhov haujlwm kom yuav tsum tau saib xyuas txuas mus rau tus kheej kom raug kaw / kaw (Arduino IDE tau txiav tawm ncaj qha).

• Tsis txhob nruab Arduino los ntawm Microsoft daim ntawv thov khw vim nws yuav tsis nyob ntawm VS Code.

Kauj Ruam 15: LoRa Project Siv Ua Piv Txwv Ntawm Kev Ntsuam Xyuas

Raws li qhov xaus, kuv qhia koj kom saib cov vis dis aus: ESP32 LORA: GAS SENSOR, MOISTURE THIAB TEMPERATURE BY SMS. Hauv cov vis dis aus, kuv siv tib tus lej zoo li kuv tau siv hauv txoj haujlwm no hnub no.

Kauj ruam 16: Rub tawm Cov Ntaub Ntawv

PDF

LWM YAM

Pom zoo: