I-PlatformIO: hlanganisa ikhodi yomthombo yamapulatifomu ahlukene

I-Platformio

Ayanda amathuluzi nezinsiza zabahleli bohlelo. Abanye bagqama ikakhulukazi, njengoba kwenzeka I-Google Colaboratory, enikeza okuningi ukukhuluma ngakho. Enye yamapulatifomu okufanele uye kuwo lalela i-PlatformIO, isayithi lokuthola izinsiza ezingavamile zalabo abakha ikhodi yomthombo yamapulatifomu ahlukahlukene.

Kulesi sifundo uzofunda ukuthi iyini i-PlatformIO, ukuthi ingeyani, ungayifinyelela kanjani, nokunye okuningi ngayo. uhlelo lokusebenza oluhle kakhulu.

Iyini i-PlatformIO?

I-PlatformIO iyi-IDE, okungukuthi, imvelo edidiyelwe yokuthuthukiswa, nomhleli wayo wekhodi ochwepheshe, kanye nomhlanganisi wayo ukuze ukwazi ukuhlanganisa ikhodi yomthombo yenqwaba yamapulatifomu, i-debugger, kanye nochungechunge lwemisebenzi ethakazelisa kakhulu namathuluzi wokuhlela (iyunithi ye-serial test monitor, i-code analyzer, i-code autocomplete, imenenja yelabhulali, njll.). Kumahhala, umthombo ovulekile, futhi ungakwazi ukunweba amandla awo ngama-plugin noma izandiso. Ize ivumele ukuthuthukiswa okukude, ingahlanganiswa nezinqolobane zekhodi ye-GitHub ne-GitLab, njll.

Ngakolunye uhlangothi, imvelo yayo inobungane kakhulu futhi kulula ukuyisebenzisa, enendawo yesimanje, enamandla, esheshayo, ekhanyayo. Isiteji Iyahlukahluka kakhulu esevele inezinkulungwane zabasebenzisi, futhi etholakala kuzo zombili i-GNU / Linux, njenge-Apple macOS kanye neMicrosoft Windows. Ungakwazi nokuyifaka kwamanye amabhodi e-SBC njenge-Raspberry Pi.

Ulwazi olwengeziwe mayelana ne-PlatformIO - Bona isayithi elisemthethweni

Okuningi mayelana nomphakathi kanye nekhodi yomthombo - Buka isayithi ku-GitHub

Amapulatifomu asekelwa i-Platformio

Uhlu lwa amapulatifomu asekelwayo by Platformio muhle ngempela. Ezinye zezakhiwo ezisekelwa umdidiyeli wakho yilezi:

  • ARM
  • Intengo ye-AVR
  • I-ARC32
  • I-NXP LPC
  • I-PIC32 microchip
  • I-RISC-V
  • njll

Ufaka kanjani?

para faka i-PlatformIO Core ku-Windows, noma ku-macOS kulula ngempela. Kodwa-ke, uma une-GNU / Linux, izinyathelo zizoba nzima kakhulu (yize nazo zineskripthi sokwenza konke kube lula), noma uma unquma ukuyifaka emthonjeni ngokuzihlanganisa wena.

Khumbula ukuthi udinga ukwanelisa inani lokuncika ngaphambi kokufaka, njengokufaka iPython, njll.

I-Los izinyathelo okufanele zilandelwe Yilezi:

  • Landa iphakheji ye-Platformio:
wget -q https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py

  • Faka i-Platformio Core
sudo PLATFORMIO_CORE_DIR=/opt/platformio python3 get-platformio.py

  • Manje udinga ukwakha isixhumanisi esingokomfanekiso kumyalo we-pio ku / usr / yendawo / bin / lwemibhalo:
sudo ln -s /opt/platformio/penv/bin/pio /usr/local/bin/pio 
  • Manje i-pio ingasetshenziswa njengomyalo wesistimu kubo bonke abasebenzisi. Ngokuzenzakalelayo, umsebenzisi oyimpande nabasebenzisi abanamalungelo e-sudo bazokwazi ukufunda nokubhala embobeni ye-serial. Okulandelayo okokwengeza umsebenzisi eqenjini elihambisanayo:
sudo usermod -a -G dialout $USER
  • Khumbula ukuthi ukwenza izinguquko futhi ukuze zisebenze, kufanele qala kabusha ikhompuyutha yakho noma phuma bese ungena futhi. Manje zama:
pio --version
  • Ekugcineni, usungakwazi manje ukususa umbhalo wokufaka kanye nenqolobane eyakhiwe ngesikhathi sokufakwa, njengoba kungenasidingo:
rm -rf get-platformio.py
sudo find /root/.cache -iname "*platformio*" -delete

I-Densinstall Platformio Core

Uma ufuna khipha i-Platformio, kuzoba lula njengokulandela lezi ezinye izinyathelo ku-Linux:
</div>
<div>sudo rm -rf /opt/platformio
sudo rm -rf /usr/local/bin/pio
rm -rf ~/.platformio</div>
</div>
<div>

Imibuzo nolunye ulwazi - Imibhalo esemthethweni

Faka i-Platformio IDE

para faka i-Platformio IDE Kulula njengokulandela lezi zinyathelo:

  1. Landa futhi ufake inguqulo esemthethweni yomhleli wombhalo we-Atom kusuka kulesi sixhumanisi.
  2. Uma isifakiwe, vula imenenja yephakheji ye-Atom.
  3. Iya kokuthi Imenyu> Hlela> Izintandokazi> Faka.
  4. Bheka lapho nge-platformio-ide esemthethweni.
  5. Bese ufaka iphakheji.
Khumbula ukuthi kuyadingeka ukufaka iPython kunoma yikuphi ...

Kulokhu i-Atom ikhethelwe i-Platformio, kodwa kungenzeka futhi ukuyenza ukuyihlanganisa ku-Visual Studio Code, etholakala ku-Windows kanye ne-GNU / Linux. Ifakwa kalula, njengoba unayo itholakala ku DEB kanye namaphakheji e-RPM kulesi sixhumanisi. Ku-Windows ukufaka kuzoba lula ngokulinganayo, ngefayela le-.exe.

Uma uzibuza mayelana nezinyathelo zoku faka isandiso ku-VS Code, ziyefana nalezo ze-Atom:

  1. Vula Ikhodi ye-VS.
  2. Khetha isithonjana sezandiso esivela ohlangothini lwesobunxele ngendlela yama-cubes.
  3. Thayipha i-PlatformIO bese ukhetha inketho yokuqala evelayo.
  4. Cindezela Faka ukuze ufake.
  5. Ilinde ukuthi iqede futhi usuqedile.

Ezinye izindawo ongahlanganisa kuzo i-Platformio

Kukhona ezinye izindawo lapho ungahlanganisa khona i-Platformio ngaphezu kwe-Atom ne-VS Code, njenge:

  • I-Netbeans
  • Umbhalo ophansi
  • Ama-Codeblocks
  • eclipse

Indawo yokusebenza ye-IDE

I-Platformio IDE

Uma kungokokuqala ubona i-interface ye-Platformio, uzobona ukuthi ayiyinkimbinkimbi, nokuthi ihlukaniswe izigaba eziningana. Into yokuqala ozoyibona isikrini sokwamukela uma uvula isihleli, nezigaba ezifana nokuthi:

  • Siyakwamukela: isikrini sokuqala sesandiso, esinenguqulo efakiwe, imisebenzi ezokwakhiwa, ukungenisa nokuvula amaphrojekthi, bona izibonelo, njll.
  • Amaphrojekthi: kwesokunxele ungakwazi futhi ukuthola uhlu olunawo wonke amaphrojekthi adaliwe ongawahlela.
  • Hlola (Umhloli): Kulesi sigaba ungahlola amaphrojekthi akho ukuze uthole izibalo zokusetshenziswa kwememori.
  • Imitapo yolwazi: Lesi sigaba sihambisana nomphathi welabhulali, ukukusiza ukuthi ufake phakathi imitapo yolwazi yomhlaba wonke neyimfihlo.
  • Amapuleti (Ibhodi): lapha ungathola futhi ufake abashayeli bamabhodi ahlukene owasebenzisa ekuthuthukiseni kwakho. Kukhona ezingaphezu kuka-1000 ezitholakalayo.
  • Amapulatifomu- Izingxenyekazi ezisetshenzisiwe kuze kube manje zibaliwe.
  • Amadivayisi: bhala uhlu lwamabhodi axhunywe kwi-PC yakho onawo njengamanje. Ikhiqizwa ngokuzenzakalelayo lapho ixhumeka echwebeni.

Izinyathelo zokudala iphrojekthi yokuqala

Uma ufuna ukuqala dala iphrojekthi yakho yokuqala, ungasebenzisa Iwizadi ukuze uyidale kalula futhi ngokushesha:

  1. Iya ku-Platformio Extension Welcome (PIO HOME).
  2. Chofoza okuthi Dala iphrojekthi.
  3. Khetha igama lephrojekthi yakho entsha.
  4. Khetha ipuleti kuthebhu yamapuleti. Ungafaka izinhlamvu zokuqala zegama lepuleti futhi uhlu luzoncishiswa ngomentshisi.
  5. Manje uzobona ukuthi inketho ye-Framework (uchungechunge lwemibandela, imiqondo kanye nezinqubo ezinhle zokuthuthukisa intuthuko) imakwa ngokuzenzakalelayo, nakuba ungayilungisa.
  6. Ungalungisa ukuthi ulondoloze kuphi iphrojekthi ebhokisini Lendawo, ngaphandle kwalokho izoyigcina ohlwini lwemibhalo oluzenzakalelayo.
  7. Uma usuqedile, ungacindezela inkinobho ethi Qeda futhi izoqala.

Kusukela lapha, indlela yokuqhubeka izoshintsha kuye ngohlobo lwekhodi noma iphrojekthi ofuna ukuyithuthukisa, kanye nebhodi elikhethiwe noma ipulatifomu, njengoba kuzoba nokuhluka okuncane.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Yiba ngowokuqala ukuphawula

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe.

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

Isivivinyo sesiNgisiHlola isiCatalanimibuzo yeSpanishi