• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.


Martin Daniel Lab 6

Page history last edited by xinyi xie 6 years, 2 months ago

Martin Daniel Lab 6


Part B:

Describe the tone pattern you hear (i.e., high or low, how long, etc.).

high -1sec

off  - 1sec

med - 1sec

off - 1sec


off - 1sec

repeat forever

Part C:

Tell a member of the teaching team what your song is (or better yet, play it for us).

Absoutely Cuckoo, Baba Yetu (etc.)...

Does this code play all the songs in all the directories of the SD card? If not, which songs does it play? How does it keep from playing the text file?

No, it only plays music files.

in utilites the function sd_dir_setup() finds the file name extension and checks for only .mp3 and .wav files.

  if ((p.name()[i] == 'M' && p.name()[i+1] == 'P' && p.name()[i+2] == '3') ||

        (p.name()[i] == 'W' && p.name()[i+1] == 'A' && p.name()[i+2] == 'V')) {

Part D:

Draw us a quick sketch of what your circuit looks like.



What are the pros and cons of using this method?

Pros: every button press will almost certainly register only once; any bouncing will be ignored.

Cons: wont be accurate; cannot pickup button presses only a few milliseconds apart; cannot be used for rapid user interface (such as fast games or activities testing user's speed of pressing a button).



Comments (1)

xinyi xie said

at 10:00 pm on Aug 16, 2014

-0.5 for not attaching the video.

You don't have permission to comment on this page.