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

lab3_caseywojcik

Page history last edited by Benjamin Tee 12 years, 9 months ago

  1.  
    1. How would you change the code to make the song play twice as fast?
      1. change "int noteDuration = 1000/noteDurations[thisNote];" to "int noteDuration = 500/noteDurations[thisNote];" 
    2. What song is playing? ;-) 
      1. The Star Wars theme is playing. ;-) 

  2.  
    1. 5V are required.  ✔ How did you find out?
    2.  
    3. What was one mistake you made when wiring up the display? How did you fix it?
      When wiring the display, I first wired the pins on the screen backwards; I looked at the diagrams in the spec sheet to fix this problem. 

    4.  

    5. What line of code do you need to change to make it flash your name instead of "Hello World"?
      lcd.print("hello, world!"); could become lcd.print("Casey"); 
       


  3.  
  4. IMG_0214.MOV

 

✔ Excellent use of interrupt pins in your timer! Also, good that you are using states to describe your uC operation. Awesome work! Keep it up! 

Comments (0)

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