Cov txheej txheem:

Tau txais BITCOIN LIVE PRICE TTGO ESP32: 10 Cov Kauj Ruam
Tau txais BITCOIN LIVE PRICE TTGO ESP32: 10 Cov Kauj Ruam

Video: Tau txais BITCOIN LIVE PRICE TTGO ESP32: 10 Cov Kauj Ruam

Video: Tau txais BITCOIN LIVE PRICE TTGO ESP32: 10 Cov Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas kom tau txais tus nqi Bitcoin tam sim no hauv USD thiab EUR siv TTGO ESP32 thiab Visuino.

Saib cov yees duab.

(Cov ntaub ntawv kho tshiab rau rub tawm hauv qab no!)

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
  • TTGO ESP32
  • Kev twb kev txuas WiFi
  • Visuino program: Rub tawm Visuino

Kauj Ruam 2: Pib Visuino, thiab Xaiv Arduino TTGO T-Display ESP32 Board Type

Pib Visuino, thiab Xaiv Arduino TTGO T-Display ESP32 Board Type
Pib Visuino, thiab Xaiv Arduino TTGO T-Display ESP32 Board Type
Pib Visuino, thiab Xaiv Arduino TTGO T-Display ESP32 Board Type
Pib Visuino, thiab Xaiv Arduino TTGO T-Display ESP32 Board Type

Visuino: https://www.visuino.eu xav tau kev 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 "TTGO T-Display ESP32" raws li qhia hauv daim duab 2

Kauj Ruam 3: Hauv Visuino Teeb WiFi

Hauv Visuino Teeb WiFi
Hauv Visuino Teeb WiFi
Hauv Visuino Teeb WiFi
Hauv Visuino Teeb WiFi
Hauv Visuino Teeb WiFi
Hauv Visuino Teeb WiFi

Xaiv TTGO T-Display ESP32 pawg thawj coj thiab hauv cov khoom vaj huam sib luag nthuav "Cov Qauv> WiFi> Txuas Mus Rau Cov Ntsiab Lus

  • Nyem rau ntawm Txuas Mus Rau Cov Ntsiab Lus 3 Dots
  • Hauv qhov AccessPoints qhov rai rub "WiFi Access Point" mus rau sab laug
  • Hauv cov khoom vaj huam sib luag teeb tsa SSID (lub npe ntawm koj li WiFi hotspot lossis router)
  • Hauv cov khoom vaj khoom tsev teeb tsa Tus Password (tus password ntawm koj li WiFi hotspot lossis router)
  • Kaw qhov AccessPoints qhov rai

Xaiv TTGO T-Display ESP32 lub rooj tsavxwm thiab hauv cov khoom vaj khoom tsev nthuav dav "Modules> WiFi> Sockets

  • Nyem rau ntawm Sockets3 Dots
  • Hauv lub qhov rai qhov rais rub TCP/IP Secure Client (SSL) mus rau sab laug
  • Hauv cov khoom vaj khoom tsev teeb tsa Host rau: blockchain.info
  • Kaw Qhov Rooj Qhov Rai

Kauj Ruam 4: Hauv Visuino Teeb Zaub

Hauv Visuino Teeb Zaub
Hauv Visuino Teeb Zaub
Hauv Visuino Teeb Zaub
Hauv Visuino Teeb Zaub
Hauv Visuino Teeb Zaub
Hauv Visuino Teeb Zaub

Xaiv TTGO T-Display ESP32 lub rooj tsavxwm thiab hauv cov khoom vaj khoom tsev nthuav dav "Modules> Display> Orientation

Teeb Orientation rau: goRight

Xaiv TTGO T-Display ESP32 lub rooj tsavxwm thiab hauv cov khoom vaj khoom tsev nthuav dav "Modules> Display> Elements

Nyem rau ntawm Elements 3 Dots

Hauv Elements window rub Kos Bitmap mus rau sab laug

Hauv cov khoom qhov rai teeb tsa Y rau 20, Nyem rau ntawm Bitmap 3 Dots

Hauv Bitmap Editor Load Bitcoin bitmap (daim duab 6) thiab kaw Bitmap editor

Hauv Elements qhov rai rub Kos Cov Ntawv rau sab laug

Hauv cov khoom vaj huam sib luag teeb xim rau aclOrange, loj rau 2, ntawv rau USD, X txog 150, Y txog 10

Hauv Elements window rub Text Field mus rau sab laug

Hauv cov khoom vaj khoom tsev teeb tsa qhov loj me rau 3, X txog 100, Y txog 35

Hauv Elements qhov rai rub Kos Cov Ntawv rau sab laug

Hauv cov khoom vaj huam sib luag teeb xim rau aclOrange, qhov loj me rau 2, ntawv rau EUR, X txog 150, Y txog 80

Hauv Elements window rub Text Field mus rau sab laug Hauv cov cuab yeej qhov rai teeb tsa me me rau 3, X txog 100, Y txog 105

Kaw lub Elements window

Kauj Ruam 5: 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 "HTTP Client" tivthaiv
  • Xaiv thiab hauv cov khoom vaj khoom tsev teeb tsa Tus Tswv rau api.coindesk.com
  • Nyem rau ntawm Kev Thov 3 Dots
  • Hauv qhov kev thov qhov rai rub "GET" mus rau sab laug
  • Hauv lub qhov rai khoom teeb tsa URL rau: /v1/bpi/currentprice.json
  • Kaw qhov kev thov qhov rai
  • Ntxiv "HTTP Client" tivthaiv "Char To Text" tivthaiv
  • Xaiv "CharToText1" thiab hauv cov khoom qhov rai qhib qhov ntev mus txog 2000
  • Ntxiv "Clock Generator" tivthaiv
  • Xaiv "ClockGenerator1" thiab hauv cov khoom qhov rai teeb tsa zaus rau 0.1
  • Ntxiv "Ncua Sijhawm" tivthaiv
  • Xaiv "Ncua Sijhawm 1" thiab hauv cov khoom vaj khoom tsev teeb tsa Lub Sijhawm rau 2000000
  • Ntxiv "Split JSON Object" tivthaiv

Kauj Ruam 6: Hauv Visuino Parsing JSON

Hauv Visuino Parsing JSON
Hauv Visuino Parsing JSON
Hauv Visuino Parsing JSON
Hauv Visuino Parsing JSON
  • Nrog nas nyem rau ntawm "SplitJSON1" thiab hauv cov ntawv qhia zaub mov nyem rau ntawm "Parse JSON Object.."
  • Hauv "JSON Object" qhov rai muab cov qauv piv txwv no (muaj nyob rau ntawm
  • Kaw qhov "JSON Object" qhov rai
  • "SplitJSON1" tiv thaiv tam sim no yuav tsim tus pin tshiab

Kauj Ruam 7: Hauv Visuino Txuas Cov Khoom Siv

Hauv Visuino Txuas Cov Cheeb Tsam
Hauv Visuino Txuas Cov Cheeb Tsam
Hauv Visuino Txuas Cov Cheeb Tsam
Hauv Visuino Txuas Cov Cheeb Tsam
Hauv Visuino Txuas Cov Cheeb Tsam
Hauv Visuino Txuas Cov Cheeb Tsam
  • Txuas "ClockGenerator1" tus pin tawm mus rau "HTTPClient1" tus pin Clock thiab "Delay1" tus pin Pib
  • Txuas "HTTPClient1" tus pin ntsiab lus rau "CharToText1" tus pin Hauv
  • Txuas "HTTPClient1" tus pin rau TTGO T-Display ESP32> WiFi> TCP Ruaj Ntseg Client1 tus pin Hauv
  • Txuas "Delay1" tus pin Tawm mus rau "CharToText1" tus pin moos thiab TTGO T-Display ESP32> WiFi> TCP Ruaj Ntseg Client1 tus pin Disconnect
  • Txuas "CharToText1" tus pin tawm mus rau "SplitJSON1" tus pin Hauv
  • Txuas "SplitJSON1> USD> rate_float rau TTGO T-Display ESP32> Text Field1 pin In
  • Txuas "SplitJSON1> EUR> rate_float rau TTGO T-Display ESP32> Text Field1 pin In

Nco tseg: koj tseem tuaj yeem ua si nrog lwm tus pin los ntawm "SplitJSON1" tivthaiv

Kauj Ruam 8: Tsim, Sau, thiab Tshaj Tawm Txoj Cai

Tsim, Sau, thiab Tshaj Tawm Txoj Cai
Tsim, Sau, thiab Tshaj Tawm Txoj Cai

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 9: Ua si

Yog tias koj ua lub zog TTGO ESP32 nws yuav txuas rau lub network thiab tso tawm tus nqi Bitcoin tam sim no hauv USD thiab EUR

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub nws thiab qhib nws hauv Visuino: https://www.visuino.euNote: Hauv Cov Ntaub Ntawv Project thaum koj qhib nws hauv Visuino, hloov WiFi teeb tsa (Nkag mus rau tus lej thiab tus lej zais) rau koj cov chaw.

Kauj ruam 10: Teeb meem

Teeb meem
Teeb meem
Teeb meem
Teeb meem

Yog tias koj tsis tau txais cov ntaub ntawv:

  1. nco ntsoov tias koj tab tom siv Visuino qhov tseeb version
  2. xyuas tias koj nkag mus rau qhov chaw WiFi raug
  3. txuas "SplitJSON1" tus pin "rate_float" mus rau ntu [0] tus pin, upload thiab nyem txuas khawm thiab pom yog tias koj tau txais cov ntaub ntawv nyob ntawd (saib cov duab txuas)

Pom zoo: