Cov txheej txheem:

Ntsej Muag Ntsej Muag Nrog E-Ntawv Zaub: 9 Kauj Ruam (nrog Duab)
Ntsej Muag Ntsej Muag Nrog E-Ntawv Zaub: 9 Kauj Ruam (nrog Duab)

Video: Ntsej Muag Ntsej Muag Nrog E-Ntawv Zaub: 9 Kauj Ruam (nrog Duab)

Video: Ntsej Muag Ntsej Muag Nrog E-Ntawv Zaub: 9 Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Kaum ib hlis
Anonim
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub
Lub ntsej muag lub ntsej muag nrog E-Ntawv Zaub

Tus kab mob corona tshwm sim tau coj ib qho tshiab ntawm kev zam rau ntiaj teb sab hnub poob: lub ntsej muag lub ntsej muag. Thaum lub sijhawm sau ntawv, lawv tau dhau los ua yuam kev hauv Tebchaws Yelemees thiab lwm qhov hauv Tebchaws Europe rau niaj hnub siv hauv kev thauj mus los rau pej xeem, mus yuav khoom thiab ntau yam ntxiv. Kuv tus ntxhais, tus kws yug menyuam hauv kev qhia, tau ua ntau lub qhov ncauj qhov ntswg rau nws tsev neeg thiab cov npoj yaig, thiab muab lub tswv yim rau txoj haujlwm no, qhia kuv txog cov hauv qab no:

Thaum lub ntsej muag lub ntsej muag tuaj yeem muaj txiaj ntsig txhawm rau txwv kev kis tus kabmob, thiab lub ntsej muag lub zej zog ua rau tus kheej tam sim no los ntawm ntau qhov ntau thiab tsawg tus qauv thiab txawm tias muaj lub teeb pom kev zoo, lawv muaj teeb meem tshwm sim: lawv ua rau lawv hnav tsis tau ntsej muag. Yam tsawg kawg rau qee yam, raws li lub qhov ncauj thiab qhov ntswg yuav tsum tau npog. Uas ua rau tsis hais lus sib tham nyuaj, thiab txhua lub ntsej muag tsis muaj ntsej muag no tsis tsuas yog ua rau menyuam yaus ntshai.

Hauv qab no kuv xav piav qhia qhov kev daws teeb meem tshiab rau qhov teeb meem no: lub ntsej muag lub ntsej muag nrog cov khoom sib xyaw ua ke. Nyob ntawm qhov chaw uas koj lub qhov ncauj yuav tsum, nws tuaj yeem tso cai rau koj qhia koj li kev xav ntawm lub siab - zoo siab luag ntxhi, ib txwm muaj, nruj, npau taws, thab plaub,… cov ntawv xov xwm, cim lossis txawm tias muaj duab.

Kuv yuav tsis cais tias lub tswv yim tuaj yeem muaj qee qhov siv hauv kev xyaum, tab sis tsawg kawg nws tuaj yeem lom zem heev los hnav ntawm ob tog. Thiab tuaj yeem muab sijhawm rau koj kom luag ntxhi ntawm qhov koj nyiam ua yeeb yam, vampire, orc, shark, miv, dev,….

Cov lus piav qhia hauv qab no ntawm tsab ntawv npaj siab tso cai rau koj los tsim koj tus kheej lub cuab yeej, vam tias yuav txhim kho thiab haum rau koj cov kev xav tau tshwj xeeb thiab xav tau. Raws li qhov teeb tsa tau yooj yim thiab cov cuab yeej feem ntau muaj cov khoom lag luam muaj, tsuas yog txwv cov txuj ci txuj ci thiab cov cuab yeej siv rau kev sib dhos.

Thov qhia peb koj cov qauv, txheej txheem, tswv yim rau kev txhim kho thiab cov duab los tso tawm ntawm lub cuab yeej.

Khoom siv

  • WaveShare hloov pauv tau 2.9 `` e-paper zaub nrog tus tsav tsheb HAT (€ 33 ntawm Amazon.de)
  • Kuv yuav cov khoom sib cais: WaveShare hloov pauv tau 2.9 nti e-Paper zaub (ntawm Eckstein, € 19), 296x128 pixel b/w.

    Wiki

    WaveShare eInk zaub tsav HAT (ntawm Amazon.de, € 9)

  • Raspberry Pi Zero, Kuv siv version 1.3 tus qauv, koj kuj tseem tuaj yeem siv Raspberry Pi Zero W (Pimoroni.com, € 10.51)
  • Pimoroni Khawm shim (€ 8.55 ntawm Pimoroni.co.uk)
  • Ib daim nyias nyias, tawv tab sis yoog raws cov yas thim rov qab rau cov zaub (Kuv siv daim ntawv tsis siv los tiv thaiv daim ntawv rau iPhone 5)
  • USB lub txhab nyiaj thiab ntev micro USB cable, lossis ua ke nrog RPi Zero, Pimoroni Zero LiPo shim, LiPo thiab LiPo charger
  • Kev lag luam lossis kev cai ua lub ntsej muag lub ntsej muag (hom tiaj)
  • Yeem tau: ib txoj hlua ntev dua (FFC 24 tus pin 0.5 hli suab) yuav pab tau, piv txwv li 60 cm-SAMTEC FJH-20-D-24.00-4 ntawm Digi-Key (qhov ntev tshaj plaws ntawm-tus-txee cable kuv tuaj yeem pom) lossis tsuas yog daisy-saw 20 cm FFC daim siv adapters (raws li ua tiav ntawm no)

    Raws li qhov kawg ntawm lub Tsib Hlis 2020 Adafruit tau muab 25 cm 24 tus pin txuas txuas txuas thiab txuas txuas: (cable: https://www.adafruit.com/product/4230, 1.5 US $), txuas: (https:// www.adafruit.com/khoom/4524)

  • Tsis teb los tau: daim ntawv lo patent lossis cov hlua khi xaws xaws txhawm rau txhim kho cov khoom rau lub ntsej muag lub ntsej muag lossis lub hnab ntawv, cov hlua roj hmab (siv qee qhov los ntawm cov khoom siv khiab mis kho)
  • Ob daim kab xev los kho qhov chaw ntawm cov zaub hauv lub hnab ntawv (lossis koj tuaj yeem xaws kho nws)
  • Lanyard strip rau RPi Zero

Kauj Ruam 1: Txheej Txheem Txheej Txheem thiab Tswv Yim

Kev Txheej Txheem thiab Tswv Yim
Kev Txheej Txheem thiab Tswv Yim
Kev Txheej Txheem thiab Tswv Yim
Kev Txheej Txheem thiab Tswv Yim
Kev Txheej Txheem thiab Tswv Yim
Kev Txheej Txheem thiab Tswv Yim

WaveShare tab tom muab qhov hloov pauv tau 2.9 nti e-ntawv tso rau hauv qhov loj ntawm 6.6 x 2.9 cm thiab daws teeb meem ntawm 296 x 128 pixels, ntxiv rau Raspberry Pi HAT kom yooj yim tswj hwm lawv cov ntawv e-ink. Qhov loj thiab kev daws teeb meem ntawm 2.9 `` cov zaub tso cai rau tso saib lub qhov ncauj nyob ze qhov loj thiab, hloov pauv tau, nws tuaj yeem tso rau ntawm qhov chaw nkhaus. Ib qho txuas me me yuav tsum tau txuas rau cov zaub uas tom qab ntawd yuav tsum txuas nrog RPi HAT nrog 24 tus pin tiaj tus hlua txuas.

Siv Raspberry Pi Zero ua microcontroller muaj ntau txoj hauv kev los tswj cov zaub., Rau cov qauv kuv tau xaiv lub khawm shim los ntawm Pimoroni, vim nws yog ib qho yooj yim thiab pheej yig tsis-off-the-txee tov uas tuaj yeem siv ua ke nrog lwm HATs/pHATs thiab tuaj yeem muab cov kev xaiv txaus rau ntau lub hom phiaj. Kev ua kom zoo dua qub (ib qho kev pab zoo siab txais tos!)

Ib txoj hauv kev yooj yim los tsim cov duab dub thiab dawb xav tau yuav piav qhia hauv qib tom ntej. Hauv txoj ntsiab cai koj tuaj yeem tso saib "ua yeeb yaj kiab GIF" zoo li cov yeeb yaj kiab, tab sis nco ntsoov tias cov nqi ua kom siab dua yog siab dua ib ob/thav duab, tab sis qee qhov kev rov ua dua tshiab ntawm cov zaub yuav pab tau.

Ib qho kev txwv ntawm qhov teeb tsa tam sim no tshwm sim los ntawm cov xov tooj sib txuas luv txuas RPi thiab cov zaub. Cov xov txuas los nrog HAT yog 20 cm ntev, qhov sib txuas zoo tshaj plaws uas kuv pom tau yog 60 cm ntev (tab sis tsis muaj nyob rau lub Tsib Hlis 2020). Kom muaj Raspberry nyob hauv thaj tsam ntawm koj txhais tes, piv txwv li. hauv lub dab teg, ib tus tuaj yeem txuas ob peb ntawm cov kab no nrog cov txuas sib txuas nruab nrab. rau lub sijhawm kuv tau siv qhov kev xaiv hnav RPI Zero ua hlua khi (saib cov duab).

Koj tuaj yeem hnav daim npog ntsej muag yam tsis muaj RPi, raws li e-Paper zaub xav tau lub zog sab nraud tsuas yog hloov pauv tab sis tsis yog rau tso duab. Yog li koj tuaj yeem tsuas yog xaiv koj "zoo ib yam ntawm hnub", txuas RPi nrog cov zaub, thauj khoom raws li cov duab rau cov zaub, thiab tom qab ntawd txuas RPi.

Rau cov menyuam yaus cov ntawv koj tuaj yeem siv qhov hloov pauv tau 2.13 `` cov khoom siv los ntawm WaveShare. Raws li nws muaj kev daws teeb meem ntawm 212x104 pixel, koj yuav tsum tsim cov ntaub ntawv bmp hauv qhov loj me no. Hloov kho tsab ntawv rau cov zaub no yooj yim heev.

Adafruit tab tom muab cov lus qhia zoo sib xws thiab cov tsav tsheb sib dhos haum rau lawv tsev neeg Feather board. Qhov no yuav tso cai rau siv lub tswv yim no los siv nrog microcontroller. Yog xav paub ntxiv saib Kauj Ruam 9.

Kauj Ruam 2: Tsim Cov Duab Dub thiab Dawb

Tsim cov duab dub thiab dawb
Tsim cov duab dub thiab dawb
Tsim cov duab dub thiab dawb
Tsim cov duab dub thiab dawb
Tsim cov duab dub thiab dawb
Tsim cov duab dub thiab dawb

Koj tuaj yeem tsim cov duab kom pom los ntawm kev siv vector duab (piv txwv li InkScape) lossis pixel duab (piv txwv li GIMP) cov haujlwm, tab sis qhov tso tawm zaum kawg yuav tsum yog 296 x 128 pixel dub thiab dawb bmp-file.

Yog li, rau cov duab xim kom pom ntawm daim ntawv e-ntawv nws yuav tsum hloov pauv mus ua cov duab dub thiab dawb.

Koj tuaj yeem siv cov duab bmp los ntawm kev sau (cov kauj ruam kawg), lossis koj tsim qee yam ntawm koj tus kheej. raws li tau piav qhia hauv qab no. Tej zaum yuav muaj ntau txoj hauv kev kom mus txog lub hom phiaj, tab sis kuv tau siv cov txheej txheem yooj yim heev thiab ncaj qha siv GIMP:

  1. Tsuas yog tau txais daim duab-ntawv nrog lub qhov ncauj ua ntu me me tsawg kawg 296 pixel dav 128 pixel siab. Qhov no yuav xav tau lub ntsej muag zoo nkauj pem hauv ntej.
  2. Xaiv ib cheeb tsam uas muaj qhov dav rau qhov siab sib piv li ntawm 2.32 rau 1 thiab siv Duab - Txo kom xaiv*
  3. Tom qab ntawd, siv Duab - Nplai duab* kom nqes mus rau 296 pixel dav (lossis 128 pixel siab).
  4. Raws li txuas ntxiv, xaiv thaj tsam 296 x 128 pixel loj thiab txiav cov duab kom xaiv raws li saum toj no.
  5. Raws li qhov loj me yuav tsum yog 296x128 pixel, siv Duab-Kho Canvas Loj* los kho yog tias xav tau
  6. Tam sim no hloov cov duab rau grayscale siv Duab - Hom - Grayscale. Cov kauj ruam no tsis yog qhov tsim nyog nruj me ntsis, tab sis tuaj yeem muaj txiaj ntsig zoo rau kev hloov kho thiab ua kom zoo dua (saib qib 9).
  7. Tom qab ntawd hloov mus rau hauv b & w bitmap siv Duab - Hom - Indexed* nrog kev xaiv "1 ntsis" thiab "Floyd -Steinberg" dithering
  8. Thaum kawg, xa cov bitmap li BMP rau daim nplaub tshev tsim nyog
  9. Koj tuaj yeem sim ua kom zoo dua qhov txiaj ntsig los ntawm kev hloov kho qhov tsis sib xws lossis qhov ci ntawm cov duab grey-scale. Xim- Cheeb Tsam- Tshem tawm cov khoom-RGB ntsuab channel yog qhov kev xaiv yooj yim txhawm rau txhim kho cov duab thiab txhim kho cov xim liab raws li lub qhov ncauj. Rov qab mus rau kauj ruam 7.
  10. Txog qhov "ua yeeb yaj kiab GIF" zoo li cov yeeb yaj kiab, koj tuaj yeem npaj tus lej sib law liag raws li saum toj no thiab lub npe thiab tus lej BMPs raws li qhov tseeb. Tom qab ntawd koj tuaj yeem tso lawv ib qho tom qab ib qho ntawm cov zaub.
  11. Muab cov ntaub ntawv tso rau hauv daim duab-subfolder tawm ntawm e-ntawv piv txwv nplaub tshev, yog tias xav tau hloov npe lawv (piv txwv li image_1.bmp, …)
  12. Hloov cov npe bmp-cov ntaub ntawv muab hauv cov piv txwv tsab ntawv nrog cov uas ntawm koj cov ntaub ntawv.

Lus Cim:

  • Kuv tsis paub tseeb tias kuv tau txais cov npe lus Askiv ntawm txhua qhov GIMP cov lus hais kom raug, zoo li kuv tab tom siv lus German.
  • Rau qee qhov piv txwv cov duab xaiv cov duab coj los ntawm internet tau siv, yog li cov no yuav tsis siv hauv kev tshaj tawm lossis rau lub hom phiaj kev lag luam.

Kauj Ruam 3: Cov Khoom Siv Hluav Taws Xob thiab Kev Sib Ntsib

Electronics thiab los ua ke
Electronics thiab los ua ke
Electronics thiab los ua ke
Electronics thiab los ua ke
Electronics thiab los ua ke
Electronics thiab los ua ke

Kev sib dhos ntawm cov khoom siv hluav taws xob yog qhov yooj yim. Lub khawm shim, yog siv ncaj qha txuas rau RPi, yuav tsum tau muab muag rau RPi's GPIO raws li qhia hauv cov khw muag khoom qhia. Raws li qhov shim yog nyias heev, HAT tuaj yeem tso rau ntawm GPIO nrog shim txuas. Siv cov tshuaj txhuam me me li sai tau thiab sim tsis txhob kis kab mob GPIO pins saum toj ntawm thaj chaw shim, desolder yog xav tau. Ua ke nrog WaveShare e-Paper HAT koj kuj tseem tuaj yeem ntxiv Pimoroni ZeroLiPo shim rau GPIO ntxiv rau khawm shim, uas tuaj yeem tso cai siv LiPo me me ua lub zog siv. Tom qab ntawd muab e-Paper HAT rau GPIO siv qhov sawv ntsug tawm nrog HAT.

Txuas cov ntawv e-ntawv thiab txuas kab txuas ncaj qha rau e-paper adapter thiab tom qab ntawd mus rau e-paper HAT raws li tau piav qhia los ntawm cov chaw tsim khoom (cov neeg tsim xiav tom kawg ntawm FFC cable sab-sab). Teeb ob lub hloov pauv ntawm HAT raws li qhov xav tau ntawm cov zaub siv, rau qhov hloov pauv tau 2.9 '' zaub rau "A" thiab "0".

Nco ntsoov tias koj tau teeb tsa txhua qhov xav tau software thiab tsev qiv ntawv teeb tsa.

Koj yuav xub xub siv cov ntawv sau piv txwv muab los ntawm Pimoroni thiab WaveShare los tshuaj xyuas kev ua haujlwm ntawm cov khoom, tom qab ntawv sim cov phiaj xwm tshwj xeeb (qhia hauv cov kauj ruam tom ntej).

Muab qhov nyuaj- thiab software ua haujlwm, tam sim no koj tuaj yeem txuas cov zaub thiab e-Paper adapter rau lub hnab ntawv lossis lub npog ntsej muag. Kuv yuav hais kom kho cov zaub thiab hloov pauv ntawm qee qhov hloov pauv tab sis txaus txhav thim rov qab, Kuv siv daim ntawv yas nyias thiab daim kab xev ob sab. Tam sim no daim ntawv thim rov qab tuaj yeem siv los kho cov zaub rau koj daim npog ntsej muag lossis rau lub hnab ntawv tiv thaiv loj dua, piv txwv. los ntawm kev xaws lossis siv ob daim kab xev, daim ntawv tso cai los yog cov hlau nplaum me.

Raws li FFC cable txuas RPI thiab zaub tsuas yog 20 cm ntev, Kuv tau siv hlua hlua hlua qhwv ncig HAT sawv ntsug-ua kom Raspberry Pi hnav tau ze rau ntawm lub ntsej muag. Raws li tau tham, ntev cable lossis txuas txuas cable yuav yooj yim dua.

Txog qhov qauv kuv tau siv lub hnab yas zoo li lub hnab yas (20x9.5 cm), qhov tseeb yog qee cov khoom ntim uas tau nyob ntawm tes. Tom qab ntawd kuv txiav lub qhov rau cov zaub thiab kho cov zaub / thaub qab phaj nyob ntawd. Tom qab ntawd kuv txuas plaub daim yas yas ntawm lub ces kaum, saib cov duab. Txhawm rau tuav tag nrho txhua qhov chaw ntawm lub ntsej muag Kuv tau siv ob txoj hlua roj hmab txhais nrog cov nuv los ntawm cov khoom siv khiab mis kho. Yog li lawv mus nyob ib puag ncig koj lub taub hau thiab kho qhov ntev yog yooj yim heev.

Kauj ruam 4: Tsab Ntawv

Cov piv txwv tsab ntawv yog kev sib koom ua ke ntawm cov ntawv sau qhia los ntawm WaveShare rau cov zaub HAT (saib Github ntawm no) thiab los ntawm Pimoroni rau khawm Shim (saib ntawm no). Ib qho kev qhuas mus rau lawv, Kuv yuav ua qhov txhaum. Txhua cov lus hais thiab cov lus pom zoo rau kev ua kom zoo siab txais tos.

Tsab ntawv WaveShare xav tau ntau lub tsev qiv ntawv los teeb tsa, raws li qhia hauv cov ntaub ntawv ntawm GitHub. Yog li Pimoroni tsab ntawv, tab sis ntawm no muaj cov cuab yeej los ua txoj haujlwm rau koj.

Qhov zoo tshaj plaws siv daim npav SD tshiab tshiab nrog Raspian, tom qab ntawd ntxiv Pimoroni cov cuab yeej siv

sudo apt-tau nruab pimoroni

thiab siv nws los teeb tsa khawm shim cov lej (pom hauv qab "lwm tus") thiab kev vam khom.

Rau WaveShare ib feem, theej lawv cov tsav tsheb thiab cov piv txwv pob los ntawm GitHub nplooj ntawv thiab teeb tsa nws thiab ib qho kev vam khom raws li tau piav qhia muaj (!). Feem ntau kev vam khom yuav tau ua tiav.

Muab cov ntawv sau rau hauv cov nab npawb piv txwv ntawm WaveShare tso saib software thiab luam cov bmp-cov ntaub ntawv rau hauv pic subfolder.

Siv tsab ntawv yog qhov yooj yim. Hauv qhov xwm txheej, hloov cov npe ntawm bmp-cov ntaub ntawv hauv BMPs cov npe rau cov uas koj xav pom. Koj tuaj yeem npaj cov npe khaws tseg thiab tsuas yog hloov qhov uas xav tau hauv cov npe nquag los ntawm kev luam hauv.

Khiav tsab ntawv. Txheeb xyuas yog tias txhua yam ua haujlwm tau zoo. Tom qab ntawd koj tuaj yeem tshem tawm HDMI thiab USB hloov pauv (nrog qee lub USB-hubs, tshem tawm yuav txwv tsis pub RPi) thiab tso daim npog ntsej muag ntawm koj lub ntsej muag thiab hlua hlua nyob ib puag ncig koj lub caj dab. Saib hauv daim iav thiab ua si los xyuas seb txhua yam ua haujlwm tau zoo.

Cov ntawv tau raug txaij mus rau qhov tsawg kawg uas yuav tsum tau nyeem cov nyees khawm thiab tso saib bmps. Yog li yog tias koj xav pom cov ntawv, kab lossis cov duab geometric, thov ntxiv cov ntsiab lus xav tau los ntawm 2in9d piv txwv tsab ntawv.

Cov duab, uas yuav tsum tau nyob hauv "pic" nplaub tshev, tau teev nyob rau hauv cov npe "BMPs", uas suav nrog 5 daim ntawv teev npe nrog lub npe ntawm 5 daim duab txhua, lossis 25 daim duab tag nrho. Thawj daim duab hauv txhua daim ntawv teev npe txuas nrog khawm A, qhov thib ob rau khawm B, thiab ntxiv rau. Cov npe tuaj yeem xaiv los ntawm kev nias ntev ntawm cov nyees khawm A txog E, piv txwv li vaj huam sib luag 1 raug xaiv siv khawm A, vaj huam sib luag 2 los ntawm khawm B thiab lwm yam. tsis ntev los yog tuav ntev dua 2 vib nas this, ua rau muaj kev hloov pauv ntawm tus chij hloov pauv. Lub voj ntawm txoj haujlwm tseem ceeb tsuas yog kuaj pom yog tias lub pob raug nias/tuav nyeem cov chij button_was_held thiab button_was_pressed, thiab cov chij twg (panel_flag, button_flag) tau raug tsa. Tom qab ntawd nws teeb tsa qhov sib txawv sib txawv (vaj huam sib luag lossis duab) raws li. Thaum kawg cov duab sib xws rau “BMPs [vaj huam sib luag] [duab]” raug xaiv los ntawm cov npe thiab sau rau cov zaub. Tom qab ntawd chij tau rov pib dua rau lawv cov av hauv av "tsis muaj" lossis "Tsis tseeb".

Tus so ntawm tsab ntawv feem ntau yog hais txog teeb tsa kev hloov pauv, pib ntawm cov zaub thiab qee qhov ua yuam kev. Koj tuaj yeem khiav tsab ntawv los ntawm IDE, lossis los ntawm lub console siv "python3 Button_shim_2in9_1.py". Xwb, koj yuav muaj tsab ntawv khiav ncaj qha tom qab khau raj.

Tsab ntawv tseem tab tom txhim kho qhov zoo, yog li thov txheeb xyuas qhov hloov tshiab.

Qhov hloov tshiab kawg (2020-Tsib Hlis -10) muaj lub luag haujlwm los tso saib cov duab hauv cov npe BMPs, display_gallery (), thiab ib qho los tso saib cov ntawd hauv cov npe sau _x, display_collections (). Tsis suav nrog hauv cov npe hauv qab no, saib cov ntawv txuas nrog.

Thov nco ntsoov tias, kom zam "dab", lwv ib daim duab yog tias cov duab tsis siv rau ob peb hnub.

#!/usr/bin/env nab hab sej

# los ntawm Pimoroni khawm shim tsab ntawv ntshuam lub sijhawm ntshuam teeb liab ntshuam ntshuam # ntshuam thiab pib tso tawm # los ntawm WaveShare-ntawv tsab ntawv #-*-coding: utf-8-*-ntshuam sys ntshuam os picdir = os.path.join (os.path.dirname (os.path.dirname (os.path.realpath (_ file_))), 'pic') libdir = os.path.join (os.path.dirname (os.path.dirname (os.path.realpath (_file_))), 'lib') yog os.path.exists (libdir): sys.path.append (libdir) ntshuam nkag los ntawm wavehare_epd ntshuam epd2in9d ntshuam lub sijhawm los ntawm PIL ntshuam duab, ImageDraw, ImageFont ntshuam traceback #teeb tsa cov cav tso tawm theem logging.basicConfig (qib = logging. DEBUG) '' ' #tsis xav tau ntawm no font15 = ImageFont.truetype (os.path.join (picdir,' Font.ttc '), 15) font24 = ImageFont.truetype (os.path. koom nrog (picdir, 'Font.ttc'), 24) '' #set BMP list BMPs =

Kauj Ruam 5: Daim Npog Daim Npav Version thiab Cov Lus Qhia Ntxiv

Ib Daim Npog Daim Npog thiab Cov Tswv Yim Ntxiv Ntxiv
Ib Daim Npog Daim Npog thiab Cov Tswv Yim Ntxiv Ntxiv

Hauv cov qauv tam sim no, cov zaub tuaj yeem hnav tau saum lub ntsej muag ib txwm los yog txuas rau lub ntsej muag uas twb muaj lawm nrog velcro strips lossis hlau nplaum. Tab sis koj yeej xav koom nrog cov zaub hauv lub npog ntsej muag, nrog qee qhov kev xaiv rau kev tso sai thiab tshem tawm.

Qhov kuv tau ua txog tam sim no yog siv daim npog ntsej muag uas kuv tau yuav ntawm lub khw txiav khaub ncaws hauv ib cheeb tsam ("Schneiderei Schmargendorf") ua los ntawm qee cov ntaub tuab tuab, txheeb xyuas thaj tsam sab xis cov khoom yuav tsum tau muab tso thiab tom qab ntawd txiav lub qhov rau hauv txheej txheej ntawm daim npog qhov ncauj. Rau cov kab hluav taws xob tso tawm ib qho hlais tau txiav rau sab hauv ntawm txoj haujlwm tsim nyog. Phaj thaub qab tau txiav rau qhov me me xav tau me me thiab ob peb lub qhov me me thawb kom tso cai xaws. Tom qab ntawd cov zaub tau teeb tsa rau ntawm daim phiaj thim rov qab siv daim kab xev ob tog, nrog rau tseem tau siv rau ntawm ntug los kho phaj thiab tso rau daim ntaub. Tom qab ntawd cov zaub tau muab tso rau hauv daim npog ntsej muag, lub xovtooj tau txav mus rau qhov hlais thiab daim ntaub tau haum rau lub phaj thaub qab. Tej zaum nws yuav pab tau txhawm rau txhawm rau txiav cov ntug ua cov ntaub ua ntej qhov no, piv txwv li nrog cov kua nplaum me me. Nyob rau hauv rooj plaub txhim kho lub thaub qab phaj los ntawm kev xaws tom qab koj kuaj xyuas tias txhua yam haum zoo. Txuas lub xov tooj mus rau HAT thiab pib Pi.

Qhov txwv ntawm txoj hauv kev no yog tias koj yuav tsis ntxuav lub npog ntsej muag nrog cov khoom sib txuam ua ke. Tab sis yuav muaj ob peb txoj hauv kev txuas cov zaub rau daim npog ntsej muag. Ib qho kev xaiv tuaj yeem yog ntxiv ib qho ntxiv, tshem tawm cov ntaub so ntswg mus rau lub npog ntsej muag, thiab tuav cov zaub tso rau hauv qhov chaw los ntawm velcro strips lossis daim ntawv tso cai ua kom nrawm. Txoj kev ntawd nws yuav tshem tau yooj yim rau ntxuav daim npog lossis hloov mus rau lwm daim npog ntsej muag.

Tom qab ntawd, cov kho kom zoo dua qub tuaj yeem sib sau ua ke cov khoom tshwj xeeb kom ua tiav kev saib zoo dua.

---------------------------- Thaum lub tswv yim qub yog lub ntsej muag lub ntsej muag nrog cov zaub, cov txheej txheem zoo sib xws kuj tseem tuaj yeem siv rau npe cim npe, lossis cov khoom tso ua ke rau hauv khaub ncaws lossis dab teg.

Los yog xav txog "Kuv yog leej twg" version nrog lub taub hau nrog cov khoom sib xyaw, tso saib cov duab lossis cov ntsiab lus uas raug xaiv los ntawm qhov sau ntau dua.

Lub tswv yim kuv pom qhov tsis txaus ntseeg, tab sis tsis xav tso nws tsis hais txog, yuav yog Niqab nrog cov zaub zoo li no.

Koj puas muaj tswv yim ntxiv? Thov qhia rau kuv paub!

Raws li tag nrho txoj haujlwm tseem tab tom muaj, saib rau qhov hloov tshiab ib ntus.

Kauj Ruam 6: Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag

Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag
Kev Sau Duab - Lub Qhov Ncauj & Lub ntsej muag

Ntawm no koj pom cov duab uas tuaj yeem siv tau ntawm 2.9 nti zaub, nrog tsom mus rau lub ntsej muag, feem ntau txwv rau lub qhov ncauj ib feem. Ntawm lwm tus, nws muaj HM Poj huab tais (2x), Thawj Tswj Hwm Obama, Ghandi, Dalai Lama, Stalin, Paul Newman, Pavarotti, thiab kuv tus miv.

Thov nco ntsoov tias, raws li kuv tau siv cov duab los ntawm is taws nem ua qhov chaw rau qee qhov ntawm lawv, kev tiv thaiv cov cai tseem siv tau thiab lawv yuav tsis siv rau lub hom phiaj kev lag luam.

Kauj Ruam 7: Sau - Qauv

Sau - Qauv
Sau - Qauv
Sau - Qauv
Sau - Qauv
Sau - Qauv
Sau - Qauv

Nov yog tus lej ntawm cov qauv uas tuaj yeem nthuav tawm, feem ntau tsim los siv GIMP.

Kauj Ruam 8: Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv

Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv
Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv
Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv
Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv
Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv
Kev Sau Duab - Cov Cim, Cov Cim thiab Cov Ntawv

Ntau cov duab piv txwv rau 293x128 zaub:

Cov cim thiab cov cim, cov ntawv.

Ib zaug ntxiv: qee cov duab lossis cov cim (piv txwv li Raspberry, Apple, Instructables) tej zaum yuav raug txwv txoj cai thiab yuav tsum tsis siv rau kev lag luam.

Kauj Ruam 9: Lwm Txoj Hauv Kev: Adafruit Feather thiab E-paper Display

Lwm Txoj Haujlwm: Adafruit Feather thiab E-paper Display
Lwm Txoj Haujlwm: Adafruit Feather thiab E-paper Display
Lwm Txoj Haujlwm: Adafruit Feather thiab E-paper Display
Lwm Txoj Haujlwm: Adafruit Feather thiab E-paper Display

Kuv paub hnub no (21-Tsib Hlis-2020) tias Adafruit tseem muab cov ntawv e-ntawv hloov pauv tau ntawm qhov loj me thiab qhov ntev (https://www.adafruit.com/product/4262, 27 US $) ntxiv rau 25 cm 24 tus pin 0.5mm suab txuas txuas txuas txuas (https://www.adafruit.com/product/4230, 1.5 US $) thiab txuas txuas (https://www.adafruit.com/product/4524).

Lawv muaj tus tsav tsheb e-ntawv rau lawv tsev neeg Feather board (Adafruit eInk Feather Friend nrog 32KB SRAM, https://www.adafruit.com/product/4446, 9 US $) uas los nrog daim npav SD tuav kom tuav tag nrho cov no duab

Kuv xav tias qhov no yuav tso cai rau teeb tsa ntau dua thiab siv hluav taws xob ntau dua li Raspberry Zero version tau piav qhia hauv no, thiab yuav yog kev daws teeb meem zoo tshaj yog tias koj xav siv STM32F405, 32u4 lossis nRF52840 platform. Hmoov tsis zoo, nws zoo li tsis tseem ceeb los ua ke Adafruit's eInk Feather Friends thiab WaveShare qhia.

Kuv yeej nyiam pom ib qho version nrog BLE thiab app los tswj cov duab uas tau tshwm.

WaveShare tab tom muab Arduino tso saib daim thaiv tsav tsheb thiab ESP3266 raws cov tsav tsheb, yog tias koj nyiam cov no.

Pom zoo: