Cov txheej txheem:

Pi Slideshow Display: 7 Kauj Ruam
Pi Slideshow Display: 7 Kauj Ruam

Video: Pi Slideshow Display: 7 Kauj Ruam

Video: Pi Slideshow Display: 7 Kauj Ruam
Video: Dais thiab nab qa sib xeem tsheb kauj vab 2024, Hlis ntuj nqeg
Anonim
Pi Slideshow Zaub
Pi Slideshow Zaub

Cov Lus Qhia no qhia yuav ua li cas thiaj tsim cov swb uas yuav rub cov duab los ntawm USB txuas lossis cov ntawv teev npe ntawm Pi

Kauj ruam 1: Teeb USB

Kev teeb tsa USB
Kev teeb tsa USB

Ua ntej txhim kho qhov program ntawm Pi uas yuav ua qhov swb, tsim cov ntawv ntawm USB rau cov duab kom khaws cia rau hauv.

Yog tias koj tsis xav siv USB, koj tuaj yeem tsim cov npe ntawm koj Pi kom khaws cov duab koj xav tso tawm.

Cov ntawv teev npe yuav tsum tau sau tseg. Nws yuav xav tau tom qab thaum tsim qhov program.

Kauj Ruam 2: Txhim Kho Txoj Haujlwm

Txhim Kho Txoj Haujlwm
Txhim Kho Txoj Haujlwm

Qhov kev zov me nyuam uas yuav siv los ua qhov kev ua yeeb yam swb hu ua FEH. Txhawm rau nruab nws, ntaus "apt-get install feh" rau hauv lub davhlau ya nyob twg thiab khiav nws ua tus tswj hwm siv "sudo" raws li qhia hauv daim duab saum toj no.

Kauj Ruam 3: Tsim Txoj Haujlwm Cov Ntaub Ntawv

Tsim Txoj Haujlwm Cov Ntaub Ntawv
Tsim Txoj Haujlwm Cov Ntaub Ntawv

Ntawm Pi, tsim ib qhov program siv nano ua tus kho. Muab cov ntawv tso rau hauv ib qho yooj yim mus nrhiav qhov chaw xws li pi/ home/ directory. Nco ntsoov muab ".py" kawg ntawm koj lub npe cov ntaub ntawv.

Kauj ruam 4: Txoj Cai

Txoj Cai
Txoj Cai

Tom ntej no mus rau hauv qhov program program file thiab ntxig cov cai hauv qab no qhia hauv daim duab saum toj no.

Hloov "/media/" nrog cov npe rau USB hauv qhov uas koj cov duab nyob.

Yog tias koj tsis siv USB koj tuaj yeem siv phau ntawv teev npe ntawm koj Pi uas muaj cov duab koj xav tso tawm.

feh -Y -x -q -D 5 -B dub -F -Z -z -r /media /

feh thaum pib ntawm kab hais kom ua kom khiav cov swb

Cov tsiaj ntawv nrog "-" nyob rau hauv pem hauv ntej yog teeb tsa rau cov swb swb. Cov npe ntawm cov lus txib no tau nthuav tawm hauv qab no:

  • Z Auto Zoom
  • -x Borderless
  • -F puv npo
  • -Y zais tus taw tes
  • -B duab tom qab
  • -q nyob ntsiag to tsis muaj qhov qhia tsis raug
  • -Z Randomise
  • -r Rov tshawb nrhiav txhua cov ntawv hauv cov ntawv tais ceev tseg
  • -D Xaub qeeb hauv vib nas this

Kauj Ruam 5: Ua Cov Ntaub Ntawv Ua tiav

Ua kom cov ntaub ntawv ua tiav
Ua kom cov ntaub ntawv ua tiav

Txhawm rau ua cov ntaub ntawv tiav, mus rau hauv lub davhlau ya nyob twg thiab ntaus cov cai hauv qab no siv "sudo". Qhov no tseem pom hauv daim duab saum toj no.

sudo chmod +x swbShow.py

Kauj Ruam 6: Khiav Cov Ntaub Ntawv

Khiav Cov Ntaub Ntawv
Khiav Cov Ntaub Ntawv

Txhawm rau ua cov ntaub ntawv yooj yim, tsim txoj hauv kev luv rau txoj haujlwm ntawm koj lub desktop.

Ob npaug nias rau cov ntawv thiab xaiv "Ua Haujlwm" thaum cov ntawv tshwm tuaj.

Kauj ruam 7: Khiav

Khiav
Khiav

Tam sim no tus swb yuav tsum tau ua. Txhawm rau kaw qhov swb qhia, nyem ESC ntawm koj cov keyboard kom rov qab mus rau lub desktop.

Pom zoo: