Cov txheej txheem:

Zaub CPU SIJ HAWM ntawm ESP Wemos D1 OLED: 7 Kauj Ruam
Zaub CPU SIJ HAWM ntawm ESP Wemos D1 OLED: 7 Kauj Ruam

Video: Zaub CPU SIJ HAWM ntawm ESP Wemos D1 OLED: 7 Kauj Ruam

Video: Zaub CPU SIJ HAWM ntawm ESP Wemos D1 OLED: 7 Kauj Ruam
Video: Ua Tus Ntawm Koj Ib Sab by Txos Lauj -Hmong Song (cover) 2019 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv ESP Wemos D1 OLED thiab Visuino los tso saib CPU Sijhawm ntawm OLED zaub.

Saib daim vis dis aus.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

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

ESP Wemos D1 OLED

Visuino program: Rub tawm Visuino

Kauj ruam 2: Visuino

Visuino
Visuino
Visuino
Visuino

Txhua yam koj yuav tsum tau ua yog rub thiab tso cov khoom sib txuas thiab Txuas lawv ua ke. Visuino yuav tsim txoj cai ua haujlwm rau koj yog li koj tsis tas yuav nkim sijhawm los tsim cov cai. Nws yuav ua txhua txoj haujlwm nyuaj rau koj sai thiab yooj yim! Visuino zoo tshaj plaws rau txhua txoj haujlwm, koj tuaj yeem tsim cov phiaj xwm nyuaj nyob rau lub sijhawm!

Rub tawm Qhov Tseeb Muaj Zog Visuino Software

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type

Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type
Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type
Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type
Pib Visuino, thiab Xaiv Arduino WeMos D1 Mini Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua tiav ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program WeMos D1 Mini! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. 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 "WeMos D1 Mini" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv "CPU TIME" tivthaiv
  • Ntxiv "Faib Integer Los Ntawm Tus Nqi" tivthaiv, hauv cov khoom qhov rai teeb tsa tus nqi: "1000"
  • Ntxiv "OLED SSD 1306/SH1106 OLED DISPLAY (I2C)" tivthaiv

Ob npaug nias rau "DisplayOLED1" tivthaiv thiab:

  • luag "Kos Cov Ntawv" rau sab laug
  • luag "Kos Kab" rau sab laug
  • luag "Kos Cov Ntawv" rau sab laug
  • luag "Text Field" mus rau sab laug
  1. Xaiv "Kos Text1" thiab hauv qab lub qhov rai teeb tsa: loj: "2", ntawv: "CPU TIME"
  2. Xaiv "Kos Kab 1" thiab hauv qab lub qhov rai teeb tsa: Dav: "120", X: "0", Y: "20"
  3. Xaiv "Kos Text2" thiab hauv qab qhov khoom tsim teeb tsa: qhov loj: "1", ntawv: "Thib ob:", X: "0", Y: "40"
  4. Xaiv "Text Field1" thiab hauv qab qhov khoom tsim teeb tsa: Qhov Loj: "2", Dav: "6", X: "60", Y: "40"

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components

Txuas "CPUTime1" tivthaiv [Milli Seconds] rau "DivideByValue1" tivthaiv [Hauv]

Txuas "DivideByValue1" tivthaiv [Tawm] rau DisplayOLED1> "Text Field1" [Hauv]

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

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

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Nco tseg: Nco ntsoov xaiv hauv Arduino> Cuab Yeej> Pawg Thawj Coj> General 8266 ModuleIt tuaj yeem yog qee lub rooj tsav xwm (nyob ntawm cov chaw tsim khoom pawg hom uas koj muaj)

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 7: Ua si

Yog tias koj ua lub zog ESP Wemos D1 OLED module, Zaub yuav pib qhia "CPU TIME" hauv vib nas this.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm 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:

Pom zoo: