Guest User

Untitled

a guest
Jun 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #define NOTES {1000, 2000}
  2.  
  3. unsigned int note[] = NOTES;
  4. unsigned int numONotes = sizeof(note) / sizeof(unsigned int);
  5. unsigned int duration[];
  6.  
  7. void setup() {
  8. ...
  9. duration = new unsigned int[numONotes];
  10. //duration = (unsigned int*)malloc(sizeof(note));
  11. ...
  12. }
Add Comment
Please, Sign In to add comment