Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
Audio bars no longer use Serial.print()
Ball shooting robot goes all the way to the edge in robot move
	reduces jumpiness
  • Loading branch information
PhyXTGears-1720 committed Apr 1, 2017
1 parent 4ad03f8 commit 944f3a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Audio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ void audioBar (unsigned int Stop, int width) {
return;
}
}
Serial.println("H: " + String(vals[0][0]));
Serial.println("D: " + String(vals[0][1]));
// Serial.println("H: " + String(vals[0][0]));
// Serial.println("D: " + String(vals[0][1]));

updateScreen();
delay(5);
Expand Down
3 changes: 1 addition & 2 deletions Images_and_Text.ino
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void ballShoot (uint16_t rCol) {
}

void robotMove (uint16_t rCol) {
for (int i = 17; i > 0; i--) {
for (int i = 17; i >= 0; i--) {
matrix.fillRect(36, 7, 4, 9, matrix.Color(193, 123, 52)); // tower
matrix.fillRect(i, 13, 4, 3, rCol);
updateScreen();
Expand All @@ -175,4 +175,3 @@ void robotMove (uint16_t rCol) {
}
}
}

0 comments on commit 944f3a6

Please sign in to comment.