norman2

note drum test

Nov 29th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (digitalRead(testJumper) && millis<100)
  2. {
  3. do
  4. {
  5. lcd.setCursor(0,0);
  6. lcd.Print("TEST MODE LOOP");
  7. for (int note=35; note<82; note++)
  8. {
  9. lcd.setCursor(0,1);
  10. lcd.print("Playing note : ");
  11. lcd.print(note);
  12. noteOn(drumchan, note, 100);
  13. delay(100);
  14. noteOff(drumchan, note, 0);
  15. delay(500);
  16.  
  17. }
  18. }
  19. while(1);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment