Mundarija:

TTGO T-Watch-da animatsion sprite yaratish: 7 qadam
TTGO T-Watch-da animatsion sprite yaratish: 7 qadam

Video: TTGO T-Watch-da animatsion sprite yaratish: 7 qadam

Video: TTGO T-Watch-da animatsion sprite yaratish: 7 qadam
Video: How to use and why to use Sprites (TFT_espi Programing tutorial) 2024, Noyabr
Anonim
TTGO T-Watch-da animatsion sprite yaratish
TTGO T-Watch-da animatsion sprite yaratish

Demo video

1 -qadam: KBIDE -ni yuklab oling va o'rnating

KBIDE -ni yuklab oling va o'rnating
KBIDE -ni yuklab oling va o'rnating
KBIDE -ni yuklab oling va o'rnating
KBIDE -ni yuklab oling va o'rnating

Bu yerdan yuklab oling: www.kbide.org

2-qadam: TTGO T-Watch V1.0.1-ni o'rnating

TTGO T-Watch V1.0.1 ni o'rnating
TTGO T-Watch V1.0.1 ni o'rnating

3-qadam: T-Watch Board-ni tanlang

T-tomosha taxtasini tanlang
T-tomosha taxtasini tanlang

4 -qadam: Misol va qo'llanmalarni bosing

Misol va darsliklar -ni bosing
Misol va darsliklar -ni bosing

5-qadam: Bort namunasini ochish → 02-DISPLAY → 04-Animatsiya

Ochiq taxta misoli → 02-DISPLAY → 04-Animatsiya
Ochiq taxta misoli → 02-DISPLAY → 04-Animatsiya
Ochiq taxta misoli → 02-DISPLAY → 04-Animatsiya
Ochiq taxta misoli → 02-DISPLAY → 04-Animatsiya

6 -qadam: Ish qanday?

Ish qanday?
Ish qanday?
Ish qanday?
Ish qanday?
Ish qanday?
Ish qanday?
Ish qanday?
Ish qanday?

O'rnatish: 1) IO36 ni INPUT_PULLUP2 ga o'rnating) Displeyning aylanishini TOP ga o'rnating.3) Ekranni oq rangga to'ldiring.4) O'zgaruvchan kechiktirishni yarating Anime (Vaqt (ms) animatsiyani ko'rsatish uchun) 5) posX (X pozitsiyasi) 6) posY (Y pozitsiyasi Y)) 7) pevX (Oldingi pozitsiya X) 8) yurish holati 9) Matnni ekranda ko'rsatish10) animatsion rasmingizni basePage o'zgaruvchiga qo'shing 11) ekranni ko'rsatish uchun basePage -dan rasm chizish Loop: 1) IF IF: GPIO36 (USER tugmasi bosilgan edi) 2) O'zgaruvchan yurishni True3 ga sozlang) IF sharti: o'zgarmaydigan walkis True4) animatsion rasmingizni img15 o'zgaruvchiga qo'shing

Vazifa: 1) Vazifani bajaring2) Vazifani har 0,5 soniyada bajaring3) Agar shart bo'lsa: o'zgaruvchining yurishi True4) pozitsiyani yangilash X 5) oldingi pozitsiyani yangilash X6) Keyingi tasvirni ko'rsatishdan oldin ekranni olib tashlash 7) IF sharti: o'zgaruvchan posX ≥ 240 (displey pikseli 240x240) X pozitsiyasini 0 (nol) ga o'rnating va animatsiyani to'xtatish uchun o'zgaruvchining yurishini "False" deb belgilang. Siz buni Board Folder → ttgo-t-watch → misollar → 02-DISPLAY → 04-Animatsiya orqali sinab ko'rishingiz mumkin.

7 -qadam: Nima bo'lganini ko'rish uchun kompilyatsiya qiling va ishga tushiring

Demo video

Tavsiya: