Cov txheej txheem:

Yuav Qhia Li Cas Cov Ntawv ntawm M5StickC ESP32 Siv Visuino: 6 Kauj Ruam
Yuav Qhia Li Cas Cov Ntawv ntawm M5StickC ESP32 Siv Visuino: 6 Kauj Ruam

Video: Yuav Qhia Li Cas Cov Ntawv ntawm M5StickC ESP32 Siv Visuino: 6 Kauj Ruam

Video: Yuav Qhia Li Cas Cov Ntawv ntawm M5StickC ESP32 Siv Visuino: 6 Kauj Ruam
Video: Yuav ua cas es thiaj kawm ntawv tau zoo part#2 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Qhia Cov Ntawv ntawm M5StickC ESP32 Siv Visuino
Yuav Ua Li Cas Qhia Cov Ntawv ntawm M5StickC ESP32 Siv Visuino

Hauv qhov kev qhia no peb yuav kawm paub yuav ua haujlwm li cas ESP32 M5Stack StickC nrog Arduino IDE thiab Visuino kom tso saib cov ntawv ntawm LCD.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

M5StickC ESP32: koj tuaj yeem tau txais nws ntawm no

Visuino program: Rub tawm Visuino

Kauj Ruam 2: Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type
Pib Visuino, thiab Xaiv M5 Stack Stick C Board Type

Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cuab Yeej" khawm ntawm Arduino tivthaiv (Daim duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "M5 Stack Stick C" raws li qhia hauv daim duab 2

Kauj Ruam 3: Hauv Visuino Ntxiv thiab Teeb Khoom

Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
Hauv Visuino Ntxiv thiab Teeb Khoom
  1. Nyem rau ntawm "M5 Stack Stick C" Board kom xaiv nws
  2. Hauv "Properties" qhov rai xaiv "Modules" thiab nyem "+" kom nthuav dav, Xaiv "Display ST7735" thiab nyem "+" txhawm rau nthuav nws,
  3. Teeb Orientation rau "goRight" <qhov no txhais tau tias yuav ua li cas cov ntawv yuav raug taw qhia
  4. Xaiv "Elements" thiab nyem rau ntawm lub pob xiav nrog 3 tus cim …
  5. Elements Dialog yuav qhia
  6. Hauv Elements Dialog luag "Text Field" los ntawm sab xis mus rau sab laug

Nyem rau ntawm "Text Field1" ntawm sab laug kom xaiv nws, tom qab ntawd hauv "Properties window" nyem rau "Initial Value" los teeb tsa cov ntawv zoo li "Sample Text"

-thiab hauv cov khoom qhov rai teeb tsa X thiab Y, qhov uas koj xav pom cov ntawv no ntawm LCD, lub neej ntawd yog 0, lub ntsiab lus nws yuav pib qhia cov ntawv hauv kaum sab laug.

-Koj tseem tuaj yeem teev cov ntawv me me thiab xim yog tias koj xav tau

Kaw lub ntsiab qhov rai

Xaiv tau:

Nyem rau ntawm "M5 Stack Stick C" Board kom xaiv nws

Hauv "Properties" qhov rai xaiv "Modules" thiab nyem "+" Txhawm rau nthuav dav, Xaiv "Display ST7735" thiab nyem "+" txhawm rau nthuav nws thiab koj yuav pom "Xim tom qab" qhov no yog lub xim pib ntawm cov zaub, hloov nws mus rau koj cov xim nyiam, koj tseem tuaj yeem teeb tsa lub teeb pom kev zoo, lub neej ntawd yog 1 (qhov siab tshaj) koj tuaj yeem teeb nws rau 0.5 lossis qee qhov nqi kom ua rau nws ntau dua.

Kauj Ruam 4: Xaiv tau - Zaub Cov Ntawv Siv "Ntawv Tus Nqi" Cheeb Tsam

Optionally - Zaub Ntawv Siv
Optionally - Zaub Ntawv Siv
Optionally - Zaub Ntawv Siv
Optionally - Zaub Ntawv Siv

Thaum koj tau ntxiv "Text Field" element hauv Elements dialog.

Koj tuaj yeem teeb cov ntawv siv "Ntawv Tus Nqi" tivthaiv.

  1. Txhawm rau ua qhov ntawd, luag cov ntawv "Tus nqi" thiab txuas nws mus rau "M5 Stack Stick C"> "Text Field1" pin [In]
  2. Hauv lub qhov rai khoom teeb tsa cov ntawv uas koj xav pom

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 6: Ua si

Yog tias koj siv lub zog M5Sticks, cov zaub yuav tsum pib qhia cov ntawv koj teeb nws.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm M5Sticks nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau qhov Qhia Qhia no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

  1. Thawj cov ntaub ntawv "StickC-Display-Text.visuino" tsuas yog teeb tsa cov ntawv hauv cov ntsiab lus qhov rai
  2. Cov ntaub ntawv thib ob "StickC-Display-Text-using-textvalue.visuino" yog teeb tsa cov ntawv siv "Ntawv Tus Nqi" tivthaiv

Pom zoo: