Cov txheej txheem:

LCD5110 Graphics Education: 4 Kauj Ruam
LCD5110 Graphics Education: 4 Kauj Ruam

Video: LCD5110 Graphics Education: 4 Kauj Ruam

Video: LCD5110 Graphics Education: 4 Kauj Ruam
Video: Introducing Windows 11 2024, Kaum ib hlis
Anonim
LCD5110 Graphics Education
LCD5110 Graphics Education

Hav sawv daws

Hauv txoj kev kawm no, Kuv xav nkag siab LCD5110_GRAPH lub tsev qiv ntawv thiab cov haujlwm txog Bitmap Graphic. Kuv txiav txim siab qhov no vim tias yog tias koj pom Qhov Chaw Sib Tw Qhov Chaw Ua Haujlwm hauv kuv nplooj ntawv, kuv tsis tau qhia koj yuav ua li cas koj tuaj yeem tsim cov duab me me. Cia peb pib…

Kauj Ruam 1: Nta thiab Kev Sib Txuas ntawm 5110LCD Zaub

Nta thiab Kev Sib Txuas ntawm 5110LCD Zaub
Nta thiab Kev Sib Txuas ntawm 5110LCD Zaub

Nta:

  • 84 × 48 hli
  • Ua tau zoo 3.3V

Kev sib txuas:

  • VCC -> Arduino 3.3V (lossis 5v)
  • BL -> Arduino pin 3 (pwm pin)
  • GND -> Arduino GND
  • CLK (SCLK) -> Arduino tus pin 8
  • DIN (MOSI) -> Arduino tus pin 9
  • DC -> Arduino tus pin 10
  • CE lossis CS -> Arduino tus pin 12
  • RST (RESET) -> Arduino tus pin 11

Kauj ruam 2: BMP NTAWV

BMP ntaub ntawv
BMP ntaub ntawv
BMP ntaub ntawv
BMP ntaub ntawv
BMP ntaub ntawv
BMP ntaub ntawv
BMP ntaub ntawv
BMP ntaub ntawv

Kuv yuav qhia ib qib zuj zus qhia koj li cas peb tsim cov ntaub ntawv bmp.

1-Tsim qee cov duab kuv siv Photo Editor rau qhov no:

  • Nkag mus rau Photo Editor
  • Sau "Tsim Tshiab" khawm
  • Xaiv qhov dav = 84 thiab siab = 48
  • Kos qhov koj xav tau
  • Txuag li.jpg

2-Hloov-j.webp

  • Upload koj cov ntaub ntawv.jpg
  • Hloov
  • Txuag

3-Tsim.c cov ntaub ntawv. Kuv siv LCD Assistant rau qhov no:

  • Dowland nws
  • Ntaus "file" khawm ces "Load Image"
  • Nkag mus "Khaws Tawm Tawm"
  • Nco ntsoov txuag.c hom ntawv

4-Muab tshuaj txhuam.c tso rau hauv daim nplaub tshev uas koj siv.

Kauj ruam 3: CODE

CODE
CODE

Kuv siv 5110LCD_Graph thiab kuv yuav qhia koj qee yam haujlwm. Yog tias koj xav kawm txhua qhov ua haujlwm, txo qis cov ntawv pdf.

#suav nrog // suav nrog tsev qiv ntawv

sab nrauv uint8_t SAT ; // piav qhia.c cov ntaub ntawv

int BL = 3; // piav qhia lub teeb rov qab

LCD5110 lcd (8, 9, 10, 11, 12); // LCD5110 lub npe (clk, din, dc, rst, ce);

void teeb tsa () {

pinMode (BL, NTAWV); lcdInitLCD (); //nameInitLCD (); pib qhov screen lcd.setContrast (55); //name.setContrast (); teeb sib piv (amoung 0 rau 127)}

void voj () {

analogWrite (BL, 330); lcd.clrScr (); //name.clrScr (); tshem qhov screen lcd.drawBitmap (0, 0, SAT, 84, 48); //name.drawBitmap(x, y, npe (.c), dav (.c), siab (.c)); lcd.update (); //name.update (); hloov qhov screen}

// --------------------- CREATE NEW TAB ------------------------ ------------------------ // Cov ntaub ntawv tsim los ntawm LCD Assistant // https://en.radzio.dxp.pl/bitmap_converter/ //- ----------------------------------------------------------------------- --------------------------- #suav nrog // suav nrog lub tsev qiv ntawv no rau siv PROGMEM // PROGMEM pab siv RAM me me siv tsis tau kos npe SAT PROGMEM = {0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0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