From 944f3a6612918e76cf42cfc449e8414bf9be07f3 Mon Sep 17 00:00:00 2001 From: PhyxtGEARS Date: Sat, 1 Apr 2017 13:56:20 -0400 Subject: [PATCH] Bug fixes Audio bars no longer use Serial.print() Ball shooting robot goes all the way to the edge in robot move reduces jumpiness --- Audio.ino | 4 ++-- Images_and_Text.ino | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Audio.ino b/Audio.ino index 62e0d0f..10bfb95 100644 --- a/Audio.ino +++ b/Audio.ino @@ -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); diff --git a/Images_and_Text.ino b/Images_and_Text.ino index 3d1101a..9e1c4c6 100644 --- a/Images_and_Text.ino +++ b/Images_and_Text.ino @@ -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(); @@ -175,4 +175,3 @@ void robotMove (uint16_t rCol) { } } } -