Cov txheej txheem:

Waveshare EPaper 1.54 Raspberry Pi: 5 Kauj Ruam
Waveshare EPaper 1.54 Raspberry Pi: 5 Kauj Ruam

Video: Waveshare EPaper 1.54 Raspberry Pi: 5 Kauj Ruam

Video: Waveshare EPaper 1.54 Raspberry Pi: 5 Kauj Ruam
Video: Raspberry Pi WAVESHARE EINK Panel | Unboxing ePaper EP.5 (+Contest) 2024, Kaum ib hlis
Anonim
Waveshare EPaper 1.54 Raspberry Pi
Waveshare EPaper 1.54 Raspberry Pi

Kuv yuav Waveshare E-Paper 1.54 rau qhov haujlwm sib txawv li no.. ntawm no yog phau ntawv qhia yuav ua li cas rau nruab nws

Kauj Ruam 1: Daim Ntawv Teev Npe

Nov yog yam koj yuav xav tau:

  • ib Raspberry pi 3
  • lub tshuab nyob deb rau SSH rau pi lossis lub vijtsam thiab keyboard los txuas rau nws ncaj qha
  • WaveShare E-paper module 1.54 (qauv A)

Kauj Ruam 2: Txuas nrog PI

Txuas mus rau PI
Txuas mus rau PI
Txuas mus rau PI
Txuas mus rau PI

Ua raws li lub npe cable thiab daim duab thaum txuas lub vijtsam rau Raspberry pi IO

Kauj ruam 3: Rub tawm thiab Nruab Qiv

Kuv tau ntxiv cov tsev qiv ntawv rub tawm cov ntaub ntawv rau txoj haujlwm, thawj qhov txuas hauv qab no

www.waveshare.com/wiki/File:Bcm2835-1.39.t…

www.waveshare.com/wiki/File:WiringPi.tar.g…

Kev teeb tsa

Nkag mus rau WiringPi nplaub tshev, tom qab ntawv ua raws cov lus txib no rau nruab:

chmod 777 ua

./ tsim

kos lub installation nrog:

gpio vwm

Mus rau bcm2835 cov tsev qiv ntawv cov ntawv tais ceev tseg, tom qab ntawv ua raws cov lus txib no rau nruab:

./configuremake sudo ua kos sudo ua nruab

Download tau tus lej demo

rov ua cov ntaub ntawv hauv bcm2835 thiab wiringpi nplaub tshev los ntawm kev mus rau daim nplaub tshev thiab ua

cd PATH/OF/DEMO/FOLDER/Rasberry/bcm2835 ua kom huv

cd PATH/OF/DEMO/FOLDER/Rasberry/wiringpi

ua kom huv

ua

Kauj Ruam 4: Hloov Kho Koj Tus Kheej

Hloov Kho Koj Tus Kheej
Hloov Kho Koj Tus Kheej

Ua ntej koj tuaj yeem khiav cov cai koj yuav tsum hloov pauv me me.

Txoj cai siv tus ntawv tsis yog nyob rau ntawm Rasbien instell yog li hloov hom font

font = ImageFont.truetype ('/usr/share/fonts/truetype/wqy/wqy-microhei.ttc', 24)

rau lwm qhov font uas muaj nyob hauv koj lub cev.

kos muaj font los ntawm kev ua thiab hloov qhov tshwm sim, kuv tau hloov nws mus

ls/usr/qhia tawm/fonts/truetype/

font = ImageFont.truetype ('/usr/qhia tawm/fonts/truetype/freefont/FreeSansBold.ttf', 24)

hauv main.py

duab = Image.open ('dawb-rick-tsim-700x700.bmp')

epd.display (epd.getbuffer (duab))

sijhawm.sleep (2)

Kauj ruam 5: Hloov Demo Code

Los ntawm Cov piv txwv cov ntaub ntawv hauv qhov demo ntawm no yog qee qhov lus txib koj tuaj yeem siv sab hauv koj tus kheej cov ntawv sau se

ntshuam lub nruab interface

ntshuam epd1in54 los ntawm PIL ntshuam duab, ImageDraw, ImageFont

Pib qhov Screen

epd = epd1in54. EPD ()

epd.init (epd.lut_full_update) epd. Clear (0xFF)

Qhib thiab Tso duab

duab = Duab.open ('1in54.bmp') epd.display (epd.getbuffer (duab))

Pom zoo: