Cov txheej txheem:

ST7920 128X64 LCD Zaub rau ESP32: 3 Cov Kauj Ruam
ST7920 128X64 LCD Zaub rau ESP32: 3 Cov Kauj Ruam

Video: ST7920 128X64 LCD Zaub rau ESP32: 3 Cov Kauj Ruam

Video: ST7920 128X64 LCD Zaub rau ESP32: 3 Cov Kauj Ruam
Video: LCD дисплей 128х64 на ST7920 2024, Kaum ib hlis
Anonim
ST7920 128X64 LCD Zaub rau ESP32
ST7920 128X64 LCD Zaub rau ESP32

Cov Lus Qhia no tau hais meej tsis mus yeej khoom plig rau nws qhov zoo lossis xijpeem!

Ua ntej pib qhov haujlwm no, kuv glazed hauv internet thiab tsis pom dab tsi txog kev txuas lub LCD no mus rau ESP32 yog li kuv xav tias thaum ua tiav, nws yuav tsum tau sau tseg thiab qhia tawm.

Khoom siv

Txhua yam koj xav tau yog ST7920 128X64 LCD zaub, ESP32 thiab 10K lauj kaub.

Kauj Ruam 1: Kev Sib Txuas

Cov Kev Sib Txuas
Cov Kev Sib Txuas

Txuas tag nrho peb cov khoom raws li kev sib txuas saum toj no.

Nws tuaj yeem siv tau tus pin sib txawv ntawm ESP32 tab sis kuv tsis paub tseeb.

Kauj ruam 2: Txoj Cai

Kuv siv Arduino IDE txhawm rau upload cov cai ntawm ESP32.

Yog tias koj tsis paub yuav txuas thiab program ESP32 nrog Arduino IDE li cas, nrhiav cov lus qhia hauv Is Taws Nem, nws yooj yim heev rau nrhiav.

Lub tsev qiv ntawv kuv siv yog U8g2 lub tsev qiv ntawv V2.27.6 Los ntawm Oliver.

Thaum koj tau teeb tsa lub tsev qiv ntawv U8g2, mus rau hauv cov piv txwv thiab qhib "Piv txwv/U8g2/full_buffer/GraphicsTest".

Tam sim no, hauv txoj cai, Nrhiav kab uas zoo li no:

// U8G2_ST7920_128X64_F_SW_SPI u8g2 (U8G2_R0,/* moos =*/13,/* data =*/11,/* CS =*/10,/* reset =*/8);

Thiab hloov nws nrog:

U8G2_ST7920_128X64_F_SW_SPI u8g2 (U8G2_R0, /* moos =* / 18, /* data =* / 23, /* CS =* / 5, /* reset =* / 22); // PEB 32

Tshaj tawm cov cai rau koj ESP32 thiab, ntiv tes hla, nws ua haujlwm!

Kauj Ruam 3: Xaus

Nov yog kuv thawj Phau Ntawv Qhia.

Kuv paub tias nws tsis zoo nkauj heev lossis ib yam dab tsi tab sis tsawg kawg nws nyob ntawd thiab nws tuaj yeem pab lwm tus.

Thov tawm tswv yim koj cov kev paub ua raws cov lus qhia no thiab kuv yuav sim hloov kho nws thiab ua kom nws zoo dua!

-Blais

Pom zoo: