Advertisement
Coriic

Untitled

May 27th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. void moveNumbers(){
  2. if(Serial.available() > 0){
  3. String myk = Serial.readString();
  4. Serial.print(myk);
  5. checkIfCorrectCommand(myk);
  6. }
  7. for(int i=0; i<3; i++){
  8. copyRowOfMatrix(i, i+1, toDisplay, toDisplay);
  9. }
  10. copyRowOfMatrix(3, currentWorkingIndex++, toDisplay, currentNumbersToDisplay);
  11. if(currentWorkingIndex == 6){
  12. currentWorkingIndex = 0;
  13. }
  14. displayArray();
  15. //delay(timeDelay);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement