Cov txheej txheem:

MicroBit: Fortuneteller: 17 Cov kauj ruam
MicroBit: Fortuneteller: 17 Cov kauj ruam

Video: MicroBit: Fortuneteller: 17 Cov kauj ruam

Video: MicroBit: Fortuneteller: 17 Cov kauj ruam
Video: Microbit Motor Control and Toy Hacking - Low Cost Method 2024, Kaum ib hlis
Anonim
MicroBit: Fortuneteller
MicroBit: Fortuneteller

Nws yog kev lom zem nrog cov kws tshaj qhia txoj cai! Tab sis lawv raug nqi ntau thiab tuaj yeem siv tsis tau. Hnub no kuv yuav qhia koj yuav ua li cas tsim koj tus kheej tsim tsim hmoov zoo! Koj tuaj yeem nug nws yog yog, tsis yog lossis tej zaum muaj lus nug thiab nws yuav muab lus teb rau koj. Qhov no tuaj yeem lom zem rau menyuam yaus ntawm txhua lub hnub nyoog lossis ua haujlwm hauv tsev neeg.

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

  1. Ib qho Microbit nti
  2. Ib lub computer
  3. Lub vev xaib makecode.org

Kauj ruam 2: Mus rau Lub Vev Xaib

Mus rau Lub Vev Xaib
Mus rau Lub Vev Xaib

Tshawb nrhiav lub vev xaib hauv qab no:

makecode.org

Kauj ruam 3:

Duab
Duab

Thaum koj mus rau lub vev xaib koj yuav pom "microbit", nyem "pib coding" hauv qab kab ntawv.

Kauj ruam 4:

Duab
Duab

Koj yuav pom lub cim uas nws hais tias "Cov Haujlwm Tshiab" thaum koj pom nws nyem lub cim.

Kauj ruam 5:

Duab
Duab
Duab
Duab

Txuas lub micro ntsis rau koj lub computer. Thaum koj nyob hauv nplooj ntawv koj yuav pom qhov no. Nyem rau pawg uas hais tias "nkag mus" thiab xaiv "On button A pressed" Yog li koj Microbit yuav paub tias cov kauj ruam tom ntej yuav tshwm sim thaum khawm A raug nias.

Kauj Ruam 6:

Duab
Duab

Nias pawg "Basic" thiab xaiv "Show string".

Kauj ruam 7:

Duab
Duab

Hloov mesasage rau "Nug Kuv Cov Lus Nug". Nco ntsoov txhua tus tsiaj ntawv loj!

Kauj ruam 8:

Duab
Duab

Nyem rau qeb "Nkauj" thiab xaiv ob ntawm "Ua suab nrov nruab nrab C 1 yeej" tab sis hloov qhov thib ob mus rau "Ua suab nrov nruab nrab E 1 ntaus"

Kauj ruam 9:

Duab
Duab

Nyem rau qeb uas hais tias "Cov tswv yim" thiab cais "On co", yog li cov kauj ruam tom ntej tom ntej yuav tshwm sim thaum koj tuav Microbit.

Kauj ruam 10:

Duab
Duab
Duab
Duab

Nyem rau qeb "Yooj Yim" hauv qab lub cim nws yuav tshwm rau lwm pawg uas hais tias "Ntau", Nyem qhov qeb ntawd thiab xaiv "Clear screen". yog li cov lus los ntawm cov kauj ruam dhau los tsis zoo los ntawm lub vijtsam.

Kauj ruam 11:

Duab
Duab

Nyem rau pawg "Hloov pauv" thiab xaiv "Teeb … Rau 0" thiab hloov cov ntawv mus rau "Teeb tus lej tsis raug"

Kauj ruam 12:

Duab
Duab

Nyem rau qeb "Lej" thiab xaiv "Xaiv tus lej zauv 0 txog 10" thiab hloov nws mus "0 txog 3", ua qhov no yog li ntawd Microbit yuav xaiv tus lej tsis raug.

Kauj ruam 13:

Duab
Duab

Nyem rau qeb "Logic" thiab xaiv "Yog tias muaj tseeb, lwm qhov yog yog" thiab xaiv "yog tias yog". Qhov no yog ua kom cov lus teb sib txawv txhua lub sijhawm kom nws tsuas yog hais ib yam thiab tsis yog txhua qhov lus teb uas tus kws tshaj lij tuaj yeem muab ib zaug.

Kauj ruam 14:

Duab
Duab
Duab
Duab

Nyem rau qeb "Logic" thiab xaiv peb "0 = 0". Nyem rau pawg "Hloov pauv" thiab xaiv peb "Teeb tus lej" thiab muab tso rau hauv txhua lub voj voog ntawm sab laug uas 0 nyob hauv. mus rau reprecent

Kauj ruam 15:

Duab
Duab

Nyem rau qeb "BASIC" thiab xaiv peb "Showstring" thiab hloov peb kab ntawv sib txawv rau "INDEED", "MAYBE" thiab "NO". Nco txhua lub kaus mom! Qhov no yuav yog cov lus uas tshwm ntawm lub vijtsam thaum koj tau tshee lub Microbit.

Kauj ruam 16:

Duab
Duab

Tam sim no koj tau ua tiav nrog programing, tam sim no koj tsuas yog yuav tsum rub nws thiab muab nws tso rau hauv koj Microbit.

Nyem rau rub lub pob hauv kaum sab laug.

Kauj ruam 17:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Nws yuav ua rau lub cim me me nyob hauv qab txoj cai kaum uas qhia koj tias rub tawm tiav. Nyem rau kab ntawv uas hais tias "Qhia hauv daim nplaub tshev". Koj yuav pom cov ntawv uas hais tias "microbit-Untitled (.). Hex", rub cov ntawv mus rau qeb uas hais tias "Microbit". Thaum koj ua tiav nrog cov kauj ruam ntawd koj yuav tos txog 3-7 feeb thiab koj yuav ua tiav nrog koj tus lej thiab tam sim no koj tuaj yeem siv koj tus fortuneteller!

Pom zoo: