Cov txheej txheem:

Plaub Pies - Raspberry Pi Tshiab 4 - Cov ntsiab lus & Kev Ua Haujlwm Zoo Tshaj!: 6 Cov Kauj Ruam
Plaub Pies - Raspberry Pi Tshiab 4 - Cov ntsiab lus & Kev Ua Haujlwm Zoo Tshaj!: 6 Cov Kauj Ruam

Video: Plaub Pies - Raspberry Pi Tshiab 4 - Cov ntsiab lus & Kev Ua Haujlwm Zoo Tshaj!: 6 Cov Kauj Ruam

Video: Plaub Pies - Raspberry Pi Tshiab 4 - Cov ntsiab lus & Kev Ua Haujlwm Zoo Tshaj!: 6 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim

Los ntawm 8BitsAndAByte8 Bits thiab ByteFollow Ntau los ntawm tus sau:

Raspberry Pi Hla Plooj
Raspberry Pi Hla Plooj
Raspberry Pi Hla Plooj
Raspberry Pi Hla Plooj
Lantern ntawm Ntau Voltages
Lantern ntawm Ntau Voltages
Lantern ntawm Ntau Voltages
Lantern ntawm Ntau Voltages
Tawm tswv yim rau Art 2.0
Tawm tswv yim rau Art 2.0
Tawm tswv yim rau Art 2.0
Tawm tswv yim rau Art 2.0

Txog: Nyob zoo, peb yog Dane & Nicole, ob tus tsim khoom uas tsim cov khoom, uas peb zoo siab koom nrog koj! Ntau Txog 8BitsAndAByte »

Hauv qab kev txheeb xyuas sai ntawm cov ntsiab lus.

  • Taw qhia thiab nthuav tawm video
  • Ncuav
  • Pi
  • 3.14
  • Pies
  • Qhov tshwm sim

Khoom siv

Raspberry Pi 4

Adafruit Mini Thermal Receipt Printer

Xav

Raspberry Pi Raspbian

3D Tshuab Luam Ntawv (generic)

Kub kua nplaum phom (generic)

Kauj Ruam 1: Taw Qhia thiab Qhia Yeeb Yaj Kiab

Image
Image

Txhawm rau txais tos thiab ua kev zoo siab rau Raspberry Pi 4 tshiab, peb tab tom tsim txoj haujlwm uas muaj plaub Pi (e) s!

Kauj ruam 2: Pie

Ncuav
Ncuav
Ncuav
Ncuav

Peb thawj lub ncuav qab zib muaj ob ntu, lub ntim thiab lub hau. Qhov ob yog ua raws tus qauv 3D zoo no. Txhua yam peb yuav tsum ua yog ua kom nws loj dua, thiab ntxiv qhov qhib rau peb cov pies tawm.

Tam sim no peb muaj cov ncuav qab zib yooj yim, tab sis nws tsis zoo ib yam. Siv qee cov kua nplaum, hnov thiab pob xim peb ntxiv qee qhov ncuav qab zib ntxiv. Muaj kev qhia zoo txog yuav ua li cas ua qhov no ntawm no.

Kauj ruam 3: Pib

Pi
Pi

Peb lub ncuav yuav tuav txhua yam peb xav tau, thiab ib qho ntawm lawv yog peb Raspberry Pi 4. Kev teeb tsa thiab ua kom muaj zog yog ua tiav ib txwm muaj.

Lawv muaj phau ntawv qhia zoo heev txog qhov tseeb ntawm no.

Yog tias koj xav paub ntau ntxiv txog Pi tshiab no, saib ntxiv.

Kauj ruam 4: 3.14

Peb xav kom peb Pi hauv peb lub ncuav qab zib xam π.

Txhawm rau ua tiav qhov no muaj me ntsis ntawm sej code.

def xamPi ():

os.system ('ncho "nplai = 2000; 4*a (1)" | bc -l')

Koj tuaj yeem ua si nrog qhov raug los ntawm kev hloov pauv. Cov nplai siab dua, nws yuav siv sijhawm ntev dua.

Kauj ruam 5: Pies

Pies
Pies

Peb muaj Pi nyob hauv lub ncuav uas suav π. Kauj ruam kawg yog ntxiv qee cov pies.

Qhov no xav tau ob yam, qee daim duab ASCII thiab lub tshuab luam ntawv me me. Ua ntej tshaj plaws, peb ASCII ncuav qab zib, ua tsaug rau lub vev xaib zoo no!

Peb muaj peb lub ncuav ASCII, tom ntej yog txuas lub tshuab luam ntawv cua sov. Txhua yam peb yuav tsum tau ua yog ua raws cov theem teev tseg hauv qab no.

Kauj Ruam 6: Qhov tshwm sim

Tam sim no peb muaj Raspberry Pi 4, hauv ncuav qab zib, suav π, thiab luam tawm pies! Yuav ua li cas txoj hauv kev zoo dua los txais tos Raspberry Pi 4 tshiab tom qab ntawd Pi (e) fest!

Pom zoo: