Cov txheej txheem:
- Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
- Kauj Ruam 2: Raspberry Pi Teeb, Thauj Khoom, Xeem thiab Kho Kom Zoo Python Code
- Kauj Ruam 3: Autostart Countdown App ntawm Boot Up
- Kauj Ruam 4: Nruab Zaub Tsav Software
- Kauj Ruam 5: Sib Sau Kho Vajtse & Ntxiv Cov Txheej Txheem Yav Tom Ntej
Video: Lub Sijhawm Yav Tom Ntej Countdown Timer: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Txheej txheem cej luam: Lub sijhawm suav suav suav zoo ib yam li cov khoom lag luam, nrog ob peb qhov kev sib tw:
a) Nyeem tau los ntawm thoob plaws chav tso saib.
b) Customizable cov duab tshwm sim.
c) Raws li lub sijhawm phiaj xwm phiaj xwm suav nrog, hnub tseem tshuav hloov xim -ntsuab -> daj -> liab -> liab.
d) Cov xwm txheej tshiab tuaj yeem txuas ntxiv hauv WiFi
Cov khoom loj: Raspberry Pi thiab TFT 5 nti LCD Zaub
Kev Txawj Ntse: Paub txog teeb tsa Raspberry Pi, Linux cov lus txib yooj yim thiab cov kev pab cuam nab nab, thiab kho vajtse me ntsis.
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Qhov:
Raspberry Pi 2 B lossis PI 3 B.
Elecrow RPA05010R HDMI 5-Inch 800x480 TFT LCD Zaub nrog Kov Screen Saib rau Raspberry Pi B+/2B/3B
Zoo Siab Acrylic Bicolor Sawv Rau Waveshare Raspberry pi 5inch HDMI LCD
Wifi USB Adapter tsis xav tau rau PI3
Cov Cuab Yeej:
Fais fab mov - ntawm 2A
Keyboard thiab nas
HDMI saib (txhawm rau kho thiab ntsuas cov lej yooj yim dua)
Kauj Ruam 2: Raspberry Pi Teeb, Thauj Khoom, Xeem thiab Kho Kom Zoo Python Code
Rau cov kauj ruam no, txuas Pi rau qhov loj me HDMI saib.
Kauj Ruam 1: Rub tawm thiab hlawv Raspbian IMAGE https://www.raspberrypi.org/downloads/raspbian/ thiab ua tiav kev teeb tsa thawj zaug.
- pab kom SSH, VNC
- pib pib khau raj rau desktop
- teeb tsa lub sijhawm hauv cheeb tsam raug, thiab teeb Wifi
Kauj Ruam 2: Los ntawm lub desktop GUI qhib lub davhlau ya nyob twg thiab nruab Tkinter nrog-
sudo apt-tau hloov tshiab
sudo apt-tau nruab python-tk
Kauj ruam 3: Nruab git nrog cov lus txib no
sudo apt-tau nruab git
Kauj Ruam 4: Rub tawm thiab sim thawj tus nab npawb nab npawb
git clone "https://github.com/e024576/UpcomingEvent.git"
cd UpcomingEvent nab hab sej cntDwnSng.py
Cov txiaj ntsig yuav tsum zoo ib yam li lub screenshot qhia …
Kauj Ruam 5: Kho tus nab npawb nab npawb rau koj qhov kev tshwm sim. Ua ntej qhib tus nab npawb nab npawb nrog nano thiab tom qab ntawd rub sab saum toj mus rau hauv qab kom paub nws.
nano cntDwnSng.py
a) hloov kho Cov Txheej Txheem lub npe thiab hnub tim los ntawm kev kho kab kab no
#enter Cov ntaub ntawv txheej xwm ntawm no…
canvas.create_text (400, 20, thauj tog rau nkoj = 'chaw', ntawv = 'MSTA Staunton Spring Romp', font = ('Helvetica', '20'), sau = 'dawb') canvas.create_text (400, 50, thauj tog rau nkoj = 'center', text = 'April 12-15, 2018', font = ('Helvetica', '20'), sau = 'daj')
b) nkag mus rau lub sijhawm tiag tiag thiab hnub uas koj xav suav nrog
# nkag lub sijhawm phiaj xwm thiab hnub tim ntawm no
hnub = 12 hli = 04 xyoo = 2018 teev = 9 feeb = 00 sec = 0
c) sau cov duab koj xav tso tawm. Tkinter tsuas yog "nyiam".gif cov ntaub ntawv hom ntawv, yog li kuv siv MS Xim los hloov kuv li qub-j.webp
yees duab = Tkinter. PhotoImage (file = './dualsport.gif')
d) rov kho daim duab. Dualsport-g.webp
# resize duab
photo = photo.zoom (3) photo = photo.subsample (2)
Uas tsim cov duab tshiab ntawm 548 x 3/2 = 822 dav thiab 450 x 3/2 = 675. Uas yog qhov loj heev, tab sis kuv tau ua tiav nrog qhov txiav. Nco ntsoov tias photo.zoom () & photo.subsample () XWB tso cai rau tus lej tsis suav tus lej.
Nrog cov kev hloov kho no koj tuaj yeem rov ua dua tus nab npawb sej los txheeb xyuas cov zis raws li koj xav tau.
Nco tseg - qhov no yog kuv thawj zaug siv tkinter, yog li kuv tus lej yuav zoo li tsis yog piv txwv zoo ntawm kev coj ua zoo tshaj plaws!
Kauj Ruam 3: Autostart Countdown App ntawm Boot Up
Thaum koj paub tseeb tias koj tus lej nab npawb ua haujlwm raug, koj tuaj yeem teeb tsa nws kom pib thaum PI khau raj. Vim tias qhov haujlwm xav tau cov duab ib puag ncig, ntawm no yog yam yuav tsum tau ua:
a) Luam cntDwnSng.py thiab koj cov ntaub ntawv-g.webp
b) Pib nano editor nrog
sudo nano/etc/xdg/lxsession/LXDE-pi/autostart
c) Ntxiv cov kab hauv qab no rau hauv qab ntawm cov ntawv
@sudo/usr/bin/nab hab sej /home/pi/cntDwnSng.py
d) Tawm nano nrog Ctrl-X, tom qab ntawd Y, tom qab ntawv nyem Enter
e) Hloov kev tso cai nrog:
sudo chmod +x cntDwnSng.py
f) Lov tes taw screen txuag los ntawm kev txhim kho lub vijtsam saver desktop nyiam nrog -
sudo apt-tau nruab xscreensaver
Thaum qhov no tau teeb tsa, koj tuaj yeem pom daim ntawv thov tshuaj ntsuam nyob hauv qab Kev Nyiam Xaiv ntawm lub ntsiab GUI desktop ntawv qhia zaub mov. Rau qhov haujlwm no koj yuav tsum tau xiam qhov screensaver.
g) Xeem tias nws ua haujlwm:
sudo rov pib dua
Kauj Ruam 4: Nruab Zaub Tsav Software
Kauj Ruam 1: Qhib lub davhlau ya nyob twg thiab Rub tus tsav tsheb LCD tsav tsheb:
sudo rm -rf LCD-showgit clone
Kauj ruam 2: Nruab tus tsav tsheb:
chmod -R 755 LCD-showcd LCD-show/ sudo./LCD5- qhia
Kauj Ruam 5: Sib Sau Kho Vajtse & Ntxiv Cov Txheej Txheem Yav Tom Ntej
Tsim lub LCD sawv ntawm cov lus qhia no.
Txuas LCD rau Raspberry Pi ib lub LCD zaub suav nrog cov lus qhia siv.
Ntxiv Cov Txheej Txheem Yav Tom Ntej
Siv ssh lossis VNC txuas nrog PI hla Wifi, tom qab ntawd hloov kho tus nab npawb nab npawb thiab ntxiv cov ntawv-g.webp
Qhov ntawd yog nws - txaus siab!
Pom zoo:
HID Keyboard Controller rau Project Diva Aracade Yav Tom Ntej Tone: 5 Kauj Ruam
HID Keyboard Controller rau Project Diva Aracade Yav Tom Ntej Tone: V-USB yog lub nrawm USB lub tsev qiv ntawv daws rau AVR micro tswj. Nws pab peb tsim HID cov cuab yeej (Keyboard, Mouse, Gamepad thiab lwm yam) los ntawm kev siv AVR micro controllers.HID keyboard kev siv raws li HID 1.11 Nws txhawb nqa 6 qhov tseem ceeb nias
Rov Qab Mus Rau Yav Tom Ntej Antigravity Water Drop - Seeeduino Lotus: 5 Kauj Ruam
Rov Mus Rau Yav Tom Ntej Antigravity Water Drop - Seeeduino Lotus: StoryTime zoo li dej nag, thawb neeg mus rau tom ntej. Puas muaj ib lub sijhawm uas koj xav kom lub sijhawm sawv ntsug lossis rov qab? Saib ze ze ntawm lub qhov dej. Puas yog nws nqes dej los yog nce?
Pob Crystal: Saib Hauv Koj Lub Neej Yav Tom Ntej!: 7 Cov Kauj Ruam
Pob Crystal: Pom Hauv Koj Lub Neej Yav Tom Ntej!: Koj puas xav paub qhov zais zais ntawm lub ntiaj teb? Zoo, koj ua tsis tau! Txawm li cas los xij, koj tuaj yeem tshawb nrhiav seb koj lub neej yav tom ntej tuav tau los ntawm kev ua koj li pob pob siv lead ua. Kuv txhais tau tias, muaj dab tsi poob? Yog tias kuv tuaj yeem ua ib qho, tom qab ntawd koj tuaj yeem dhau los ntawm kev siv LCD saib, lub taub qab
Rov Qab Los Rau Lub Sij Hawm Yav Tom Ntej: 8 Kauj Ruam (nrog Duab)
Rov Qab Los Rau Lub Sij Hawm Yav Tom Ntej: Txoj haujlwm no tau pib lub neej zoo li lub tswb moos rau kuv tus tub. Kuv tau ua kom zoo li lub sijhawm sib tw los ntawm Rov Mus Rau Yav Tom Ntej. Cov zaub tuaj yeem qhia lub sijhawm hauv ntau hom ntawv, suav nrog ib qho ntawm cov yeeb yaj kiab tau kawg. Nws yog teeb tsa tau los ntawm cov nyees khawm
Kev Hloov TV Yav Tom Ntej Yav Tom Ntej: 6 Kauj Ruam (nrog Duab)
Kev Hloov TV Yav Tom Ntej Yav Tom Ntej: Nov yog lub TV nqa xim thaum ntxov uas kuv tau hloov pauv nrog lub ntsej muag tshiab (tab sis zoo li ze li qub) LCD TV vaj huam sib luag. Nws zoo nkauj heev thiab phab ntsa teeb, thiab kuv tau hloov pauv thawj lub TV tswj, khaws thawj khawm-thawb teb-tuni