Cov txheej txheem:

Linkit Ib - Music Player: 4 Kauj Ruam
Linkit Ib - Music Player: 4 Kauj Ruam

Video: Linkit Ib - Music Player: 4 Kauj Ruam

Video: Linkit Ib - Music Player: 4 Kauj Ruam
Video: Fifth Harmony - Worth It (Official Video) ft. Kid Ink 2024, Kaum ib hlis
Anonim
Linkit Ib - Music Player
Linkit Ib - Music Player
Linkit Ib - Music Player
Linkit Ib - Music Player
Linkit Ib - Music Player
Linkit Ib - Music Player

Qhov Linkit ib qho muaj peev xwm ntau dua li tsuas yog ntsais LED, nws muaj onboard WiFi, GSM, GPRS thiab ntau ntxiv. Nws kuj tseem muaj 3.5mm lub mloog suab thiab SD Card yog li ntawd tau txais kuv xav yog tias koj tuaj yeem tso tawm xov xwm los ntawm koj li Linkit One thiab hloov tawm koj tuaj yeem ua tau hauv cov lus qhia no Kuv yuav qhia koj li cas los hloov koj li Linkit Ib rau media player.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Nov yog yam koj yuav xav tau pib nrog txoj haujlwm no

  • Linkit Ib
  • Micro USB Cable
  • Ib khub ntawm Pob Ntseg nrog 3.5mm Jack
  • Micro SD daim npav

Kauj ruam 2: Uploading Code

Tso Cai
Tso Cai
Tso Cai
Tso Cai

Txhawm rau rub cov program rau Linkit Ib koj yuav xav tau Arduino IDE, koj tuaj yeem rub nws los ntawm Arduino lub vev xaib raug cai. Thiab tom qab koj rub tawm nws koj yuav tsum tau mus rau Preferences hauv Arduino File Menu.

Hauv Cov Txheej Txheem Ntxiv, Tus Thawj Coj URLs nkag mus:

download.labs.mediatek.com/package_mtk_linkit_index.json

Tom qab ntawd mus rau cov cuab yeej thiab xaiv tus thawj tswj hwm Tom qab tshawb nrhiav rau Linkit One thiab koj yuav tsum muaj nws ua haujlwm.

Tom qab ntawd theej cov cai los ntawm hauv qab no thiab tom qab ntawd rub nws mus rau lub rooj tsavxwm, xyuas kom tseeb tias koj muaj txoj cai COM chaw nres nkoj thiab pawg thawj coj xaiv ua ntej xa cov cai.

#define file_name (char *) "xyz.mp3" // hloov qhov no rau zaj nkauj koj xav ua

tsis muaj dab tsi ua si (char * filename) {

LAudio.setVolume (5);

LAudio.playFile (storageSD, cov ntaub ntawv npe); Serial.print ("Ua si:"); Serial.println (filename); ncua (5000);

}

void teeb tsa () {

Serial.begin (9600);

thaum (! Serial); Serial.println ("Initializing SD Card …"); LSD.begin (); Serial.println ("Daim Npav Pib!");

}

void voj () {

ua si (file_name);

}

Kauj ruam 3: Ntxig SD Card

Inserting SD Card
Inserting SD Card
Inserting SD Card
Inserting SD Card
Inserting SD Card
Inserting SD Card

Rub ob peb MP3 ntaub ntawv lossis Wav cov ntaub ntawv rau hauv koj daim npav SD thiab tom qab ntawd ntsaws nws rau hauv koj Linkit Ib, nco ntsoov koj nkag koj lub npe cov ntaub ntawv hauv tus lej los ntawm cov kauj ruam dhau los.

ua si ('Koj Lub Npe');

Kauj ruam 4: Plug-in Earphones

Plug-in Pob Ntseg
Plug-in Pob Ntseg
Plug-in Pob Ntseg
Plug-in Pob Ntseg

Tam sim no koj tau npaj txhua yam ua ntej koj tso lub hwj chim ntawm lub rooj tsav nkoj ntsaws rau hauv ib lub mloog pob ntseg thiab teeb tsa lub rooj hloov ntawm SPI rau SD. Thiab koj yuav tsum nyob ntawm no koj cov nkauj ua si thaum koj hloov ntawm koj li Linkit Ib.

Mus Ntxiv…

Vam tias koj muaj kev lom zem los tsim Media player, Yav tom ntej Qhia Kuv yuav qhia koj yuav ua li cas ntxiv IR chaw taws teeb los tswj cov nkauj raug ntaus thiab muaj kev tswj hwm ntau ntxiv rau Media player.

Yog tias koj muaj lus nug, thov tawm lus hauv qab no lossis PM rau kuv thiab kuv yuav sim pab koj.

Pom zoo: