Cov txheej txheem:

TFT 1.44 Arduino Nano - Piv Txwv Ntxiv: 4 Kauj Ruam
TFT 1.44 Arduino Nano - Piv Txwv Ntxiv: 4 Kauj Ruam

Video: TFT 1.44 Arduino Nano - Piv Txwv Ntxiv: 4 Kauj Ruam

Video: TFT 1.44 Arduino Nano - Piv Txwv Ntxiv: 4 Kauj Ruam
Video: ЛУЧШИЙ ЭКРАН ДЛЯ АРДУИНО ARDUINO TFT LCD 1.8 SPI 128Х160 2024, Hlis ntuj nqeg
Anonim
TFT 1.44 Arduino Nano - Piv Txwv Ntxiv
TFT 1.44 Arduino Nano - Piv Txwv Ntxiv

Hauv qhov kev qhia no, peb yuav hla ntau qhov piv txwv ntawm qhov ua tau li cas nrog TFT 1.44 thiab Arduino Nano los ntawm Robo-Geek cov khoom siv.

Thov xa mus kom paub yuav ua li cas txuas rau TFT 1.44:

www.instructables.com/id/Using-TFT-144-Wit…

Thiab yog tias koj yog tus tshiab rau Arduino World, peb xav kom koj pib nrog:

www.instructables.com/id/Arduino-Nano/

Kauj Ruam 1: Ntsuam Xyuas Pib Piv Txwv Kev tshoov siab

Image
Image

Ntawm Robo-Geek peb yog cov kiv cua loj ntawm Short Circuit movie. Cov ntawv qhia no yog kev tshoov siab los ntawm qhov qhib qhov tshwm sim, raug tsoo los ntawm teeb pom kev zoo, qhov twg lub khoos phis tawj lub tsev nyob hauv Johnny's 5 lub cev tau rov pib dua. Nrog TFT 1.44, peb tuaj yeem ua lub vijtsam zoo sib xws tab sis tau kawg nws yuav yog rau cov neeg hlau me me.

Daim ntawv ceeb toom raws li kev tshuaj xyuas kab ke tau ua cov npe sib txawv nyem hauv cov tsiaj ntawv liab. Yog li qhov no zoo heev!

Txoj cai yooj yim no yuav raug siv los rov tsim cov kab ke ua ntu zus.

Kauj ruam 2: Txoj Cai

Zoo li txhua tus lej Arduino, muaj 2 ntu:

Lub teeb muaj nuj nqi thiab lub voj muaj nuj nqi. Tus so ntawm lub luag haujlwm yog lub luag haujlwm pabcuam.

Muaj qhov ua kom yuam kev yooj yim los tsim cov animation. Nws yog los kos xim, tom qab kos tib yam xim dub. Tsuav ntev li keeb kwm yav dhau dub, qhov cuam tshuam rau tus neeg siv yog tias cov ntawv lossis teeb duab tau flashing. Kev ua tiav nrawm yog nrawm heev yog li cov duab nrawm tuaj yeem ua nrog qeeb qeeb.

Lub vijtsam tau muab faib ua 10 ntu, 5 hauv txhua ib nrab ntawm lub vijtsam.

Print_messages () muaj nuj nqi luam tawm ntu tshwj xeeb uas tau xaiv thiab xim ntawm cov font xaiv.

Print_all_messages () muaj nuj nqi luam tawm txhua ntu

Print_labels () ua haujlwm rub cov ntawv lo rau lub vijtsam (ON/OFF cov nyees khawm, thiab lwm yam)

Draw_buttons () muaj nuj nqi thim cov nyees khawm

Animate_messages () muaj nuj nqi hu rau print_messages () muaj nuj nqi thiab qhia cov lus hauv qhov tshwm sim tsis xwm yeem ib ntu:

/Sequence: 5, 3, 9, 7, 4, 10, 8, 2, 1, 6

Lub tswv yim rau kev txhim kho: Cov cai no tuaj yeem txhim kho thiab ua haujlwm tsis raug siv tau.

Kauj Ruam 3: Piv Txwv: Puas Yog Koj Tsis Xav Ua Peev Xwm Ib Yam?

Image
Image

Ntau qhov kev tshoov siab los ntawm Short Circuit movie:

Raws li qhov piv txwv dhau los, tus lej no qhia yuav ua li cas cuam tshuam nrog TFT 1.44 los ntawm Robo-Geek Kits.

PrintDrPepper () muaj nuj nqi luam tawm cov lus.

PrintDrPepper_withdelay () muaj nuj nqi luam tawm cov lus nrog ncua.

RotText () muaj nuj nqi luam tawm cov lus nrog ncua tab sis tig nws hauv qhov screen.

Teeb meem muaj peev xwm:

Nrog TFT 1.44 qee lub sijhawm teeb tsa tau teeb tsa zoo li yog lub vijtsam 128x160, yog li qhov xav tau yuav tsum tau ua nyob rau hauv txoj kab ntsug. Xa mus rau cov lus qhia hauv qab no Kauj Ruam 4 kom paub meej ntxiv. Ib feem ntawm kev lom zem nyiag nkas cov cuab yeej me me no.

www.instructables.com/id/Using-TFT-144-With-Arduino-Nano/

Kauj Ruam 4: Lwm Qhov Chaw

Image
Image

Yog tias koj tab tom nrhiav kev tshoov siab ntxiv, peb hais qhia kom saib cov vis dis aus zoo no los ntawm Educ8s.

Txawm li cas los xij, nws yog ib qho tseem ceeb kom nco ntsoov tias cov tsev qiv ntawv siv sib txawv dua li cov uas tau qhia hauv cov lus qhia yog li peb tsis muaj lub luag haujlwm rau qhov siv tau ntawm daim vis dis aus. Tau hais tias, nws ib txwm zoo los sim thiab kawm los ntawm ntau tus neeg los ntawm cov zej zog qhib.

Hmoov zoo tshaj plaws nrog koj txoj haujlwm thiab qhia rau peb paub dab tsi tshwm sim hauv koj txoj haujlwm tom ntej.

Pom zoo: