Cov txheej txheem:
- Kauj Ruam 1: Siv Software thiab Cov Ntaub Ntawv
- Kauj Ruam 2: Kev Tsim Nyog ntawm VSCode Editor
- Kauj ruam 3: Rub Visual Studio Code
- Kauj Ruam 4: Kev Nruab Nrig Studio Code
- Kauj Ruam 5: Txhim Kho PlatformIO Extension
- Kauj Ruam 6: Kev piav qhia luv luv ntawm PlatformIO Home Page
- Kauj Ruam 7: Tsim Txoj Haujlwm Tshiab
- Kauj Ruam 8: Cov Ntaub Ntawv Tseem Ceeb
- Kauj ruam 9: PlatformIO Toolbar
- Kauj ruam 10: Ntshuam Arduino Project (.ino) rau hauv PlatformIO
- Kauj Ruam 11: Ntshuam ESP32.ino Project mus rau PlatformIO
- Kauj Ruam 12: Tos Txog Thaum Lub Platform IO Tsev Qhib
- Kauj ruam 13: Ua tiav
- Kauj Ruam 14: Cov Lus Cim thiab Lus Ceeb Toom Txog PlatformIO Txuas Ntxiv
- Kauj Ruam 15: LoRa Project Siv Ua Piv Txwv Ntawm Kev Ntsuam Xyuas
- Kauj ruam 16: Rub tawm Cov Ntaub Ntawv
Video: Nws Hloov Dub! VS Code: 16 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
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
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
Txuas:
code.visualstudio.com/download
Kauj Ruam 4: Kev Nruab Nrig Studio Code
• 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
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
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
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.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
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
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
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
Cov ntaub ntawv qhov chaw yuav nyob hauv src nplaub tshev. Ua ke, thauj khoom, thiab debug (Serial monitor).
Kauj ruam 13: Ua tiav
Kauj Ruam 14: 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
LWM YAM
Pom zoo:
Yuav Ua Li Cas Ua PCB (Nws Puas Tsim Nyog Nws?): 5 Kauj Ruam
Yuav Ua Li Cas Ua PCB (Nws Puas Tsim Nyog Nws?): Kuv xav qhia kuv li "PCB kev paub" &" nrog koj
Raspberry Pi Oled Moos Saib Nws hnov Nws thiab hnov Nws: 5 Kauj Ruam (nrog Duab)
Raspberry Pi Oled Clock Watch Nws hnov Nws thiab hnov Nws: Qhov no yog lub moos ntse uas qhia lub sijhawm ntawm cov zaub OLED thiab tseem koj tuaj yeem hnov lub sijhawm nyob rau lub sijhawm sib txawv ntawm lub sijhawm uas yog pab puv rau qhov muag tsis pom thiab Nws tseem hloov cov xim coj nrog lub sijhawm zoo li lub teeb nyob rau yav tsaus ntuj lub teeb nyob rau yav tsaus ntuj mus txiv kab ntxwv rau daj thiab zoo li t
Sau nws! Ua Nws! Qhia Nws!: 4 Kauj Ruam
Sau nws! Ua Nws! Qhia Tawm!: Kuv cov tub ntxhais kawm tau siv Legos pab ntxiv kev muaj tswv yim rau lawv txoj kev sau, koom haum sau ntawv, thiab nthuav tawm lawv cov haujlwm ua digitally nrog lawv tsev neeg thiab nrog lawv cov phooj ywg hauv chav kawm
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Cov Neeg Hais Lus Tsis Txaus Dej Uas Ntab - " Nws Ntws, Nws Totes thiab Nws Pob Zeb Sau Ntawv! &Quot;: 7 Cov Kauj Ruam (nrog Duab)
Cov Neeg Hais Lus Tsis Txaus Dej Uas Ntab - " Nws Ntws, Nws Totes thiab Nws Pob Zeb Sau Ntawv! ). Peb yuav ntab hauv tus dej, lossis txuas kab rau ntawm ntug dej kom peb cov ntab nyob ntawm qhov chaw peb nyob. Txhua tus neeg