Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. int* currentPat;
  2. int pat1[] = {0,2,1,2,0,2,1,2};
  3. int pat2[] = {0,2,1,2,0,3,0,3,1,2};
  4.  
  5. int ms = 500;
  6.  
  7. int timeUntilNextBeat = 0;
  8. int lastBeatTime = 0;
  9. int stepCount = 0;
  10. int currentStep = 1;
  11.  
  12. //Serial.print("\n");
  13.  
  14. void setup()
  15. {
  16.    Serial.begin(9600);
  17.   currentPat = *pat1;
  18.   stepCount = sizeof(currentPat)/sizeof(int);
  19.  
  20.   Serial.print("\n\n<<<Program Start>>>\n");
  21.  
  22.   Serial.print("Count: ");
  23.   Serial.print(stepCount);
  24.   Serial.print("\n");
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement