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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Annie Scalmanini Lab 3

This version was saved 12 years, 11 months ago View current version     Page history
Saved by Annie Scalmanini
on April 13, 2011 at 10:01:21 pm
 

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 :)

 

 

 

Comments (0)

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