Browse Source

screen mirroring lines

Aster Greenblatt 2 years ago
parent
commit
3c68a5e5c3
2 changed files with 10 additions and 2 deletions
  1. 1 0
      MAZEZAM/controller.ino
  2. 9 2
      MAZEZAM/screens.ino

+ 1 - 0
MAZEZAM/controller.ino

@@ -210,6 +210,7 @@ void checkmenu(){
           arduboy.clear();
             arduboy.setCursor(22, SCREEN_HEIGHT/7*3);
           arduboy.print("Progress Saved");
+          Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
           arduboy.display();
           while (true){
             arduboy.pollButtons();

+ 9 - 2
MAZEZAM/screens.ino

@@ -100,6 +100,7 @@ void menuScreen() {
             arduboy.setCursor(SCREEN_WIDTH/5-6, SCREEN_HEIGHT/4*selection-4);
             arduboy.print(">");
 
+            Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
             arduboy.display();
   
             arduboy.pollButtons();
@@ -141,6 +142,7 @@ void menuScreen() {
             arduboy.print("Yes    No");
             arduboy.setCursor(SCREEN_WIDTH/5+7+(selection-1)*42, SCREEN_HEIGHT/3+15);
             arduboy.print(">");
+            Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
             arduboy.display();
           
             arduboy.pollButtons();
@@ -167,6 +169,7 @@ void menuScreen() {
           arduboy.clear();
           arduboy.setCursor(SCREEN_WIDTH/8, SCREEN_HEIGHT/3);
           arduboy.print("Nothing to load");
+          Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
           arduboy.display();
           while (true){
             arduboy.pollButtons();
@@ -181,6 +184,7 @@ void menuScreen() {
           arduboy.clear();
           arduboy.setCursor(SCREEN_WIDTH/6, SCREEN_HEIGHT/3);
           arduboy.print("Nothing saved");
+          Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
           arduboy.display();
           while(true){
             arduboy.pollButtons();
@@ -199,7 +203,8 @@ void menuScreen() {
 
             arduboy.setCursor(SCREEN_WIDTH/4-3+42*selection, SCREEN_HEIGHT/3+14);
             arduboy.print(">");
-            
+
+            Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
             arduboy.display();
 
             arduboy.pollButtons();
@@ -225,6 +230,7 @@ void menuScreen() {
                   arduboy.clear();
                   arduboy.setCursor(SCREEN_WIDTH/5, SCREEN_HEIGHT/3);
                   arduboy.print("Data erased.");
+                  Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
                   arduboy.display();
                   arduboy.pollButtons();
                   if (arduboy.justPressed(A_BUTTON) or arduboy.justPressed(B_BUTTON)){
@@ -244,7 +250,7 @@ void menuScreen() {
     arduboy.print(">");
   
     Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
-    arduboy.display();
+    arduboy.display();  
   }
 }
 
@@ -259,6 +265,7 @@ void levelSelectScreen(){
     arduboy.setCursor(((i<9) ? 10 : 4) + ((i%((SCREEN_WIDTH-4)/15))*15), 2 + ((i/((SCREEN_WIDTH-4)/15))*15));
     arduboy.print(i+1);
   }
+  Serial.write(arduboy.getBuffer(), 128 * 64 / 8);
   arduboy.display();
   arduboy.pollButtons();
   if (arduboy.justPressed(UP_BUTTON) and levnum > 7) {