Cov txheej txheem:

Organ hauv: 5 Kauj Ruam (nrog Duab)
Organ hauv: 5 Kauj Ruam (nrog Duab)

Video: Organ hauv: 5 Kauj Ruam (nrog Duab)

Video: Organ hauv: 5 Kauj Ruam (nrog Duab)
Video: Jack GV - Kuv Thov Txim Ft. Vicky Yang (Official Audio) 2024, Kaum ib hlis
Anonim
Hluav Taws Xob
Hluav Taws Xob

Nyob zoo, Txhua tus. Nov yog cov chav kawm, Kuv yuav qhia yuav siv lub thawv ntawv thiab arduino li cas los ua ib yam ntxim nyiam , hnub no, kuv yuav qhia rau koj nrog Electronic Organ. Qhov haujlwm no yooj yim heev, yog li ua raws cov kauj ruam tsim tawm tsis nyuaj li.

Kauj Ruam 1: Koj Yuav Tsum Npaj Cov Khoom Siv no

Koj Yuav Tsum Npaj Cov Khoom Siv no
Koj Yuav Tsum Npaj Cov Khoom Siv no

Kauj Ruam 2: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court

Kauj ruam 3: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Kauj ruam 4: Code

void teeb tsa ()

{

pinMode (1, INPUT);

pinMode (13, NTAWV);

pinMode (2, INPUT);

pinMode (3, INPUT);

pinMode (4, INPUT);

pinMode (5, INPUT);

pinMode (6, INPUT);

pinMode (7, INPUT);

}

void lub voj ()

{

analogWrite (10, 1);

yog (digitalRead (1)) {

suab (13, 262);

} lwm yog (digitalRead (2)) {

suab nrov (13, 294);

} lwm yog (digitalRead (3)) {

suab nrov (13, 330);

} lwm yog (digitalRead (4)) {

suab (13, 349);

} lwm yog (digitalRead (5)) {

suab nrov (13, 392);

} lwm yog (digitalRead (6)) {

suab nrov (13, 440);

} lwm yog (digitalRead (7)) {

suab (13, 494);

lwm yam {

noTone (13);

}

}

Kauj ruam 5: GameRules

GameRules
GameRules

Nias lub pob thiab lub tshuab hluav taws xob ua suab nrov.

Cov xya khawm no sib haum rau DO , RE , MI , FA , SUO , LA , XI

Pom zoo: