| 
  • 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.

View
 

Annie Scalmanini Lab 3

Page history last edited by Annie Scalmanini 9 years, 3 months ago

a. How would you change the code to make the song play twice as fast?

You could change the values below of "noteDurations" - double every value to make the song play twice as fast. You can also mess with the rhythm and invert it (replace quarter notes with eighth notes and eighth notes with quarter notes) to get a fun syncopation.

 

int noteDurations[] = {

  4, 8, 8, 4,4,4,4,4 };

 

change to:

int noteDurations[] = {

  8, 16, 16, 8,8,8,8,8 };

 

a. What voltage level do you need to power your display?

The Star Wars theme song!!

 

a. What voltage level do you need to power your display?

5.0 V

 

 

b. What was one mistake you made when wiring up the display? How did you fix it?

I didn't ground the R/W (read/write) pin on the LCD display.

 

c. What line of code do you need to change to make it flash your name instead of "Hello World"?

  lcd.print("hello, world!");

 

change to:

  lcd.print("ANNIE!"); 

 

 

 

b. Post a link to the Lab 3 Timers Hall of Fame.

The video is on the lab camera. 

Mine is the timer that plays "Row, Row, Row Your Boat!" when it counts down to zero :)

 

Fliqz has shut down their service. To access this video, email support with this video id: fce2b168c06a41989afd9f9621fae5a6

 

 

Comments (0)

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