FireBlock Audio

来自Firefly wiki
跳转至: 导航搜索

TF Card Preparation

Copy some MP3 or WAV files from the PC to the TF card, e.g. WithoutYou_Mariah.mp3 。


Plug the TF card into Fireduino board, and restart the board by pushing the "RES" button at the bottom right.

Connect to Fireduino

When FireBlock connects to Fireduino board, it will read the list music files in the root directory of the TF card.


Blocks

Drag all the blocks needed to the scripting area. Please note, you may need to scroll the gray scroll bar on the right side to see the block.

Category Blocks
Fireblock quickstart cat control en.png Fireblock quickstart block green flag en.png Fireblock quickstart block when mouse en.pngx2
Fireblock quickstart cat appearance en.png Fireblock quickstart block say en.png
Fireblock quickstart cat fireduino en.png Fireblock quickstart block board play snd en.png Fireblock quickstart block board control snd en.pngx2


Put all the blocks in the scripting area:

Fireblock sound 1 en.png


Build

Click the dropdown arrow of Fireblock quickstart block board play snd en.png, and select one from the popup music list:

Fireblock sound 2 en.png


Click the dropdown arrow of Fireblock quickstart block when mouse en.png, and in the popup list, choose "mouse-entered" for one, "mouse-departed" for the other:

Fireblock sound 3 en.png


Click the dropdown arrow of Fireblock quickstart block board control snd en.png, and in the popup menu, choose "Pause" for one, "Resume" for the other.

Fireblock sound 4 en.png


and combine them:

Fireblock sound 5 en.png


Fireblock sound 6 en.png


Fireblock sound 7 en.png


Finally get:

Fireblock sound 8 en.png


Click the flag Fireblock quickstart icon flag.png above the stage to run. You'll hear the wonder music when you plug the speaker in the black phone jack at the bottom right of the board.

When the mouse cursor enters the little "turtle", the music will pause; when it leaves, the music will resume:

Fireblock sound 9 en.png


To stop, please click the Fireblock quickstart icon stop.png above the stage.