Display Class for BaseMachine

Revision:
11:59d197b18cf5
Parent:
10:699beb99effe
Child:
12:e6b2b72db313
diff -r 699beb99effe -r 59d197b18cf5 ST7565_SequencerDisplay.h
--- a/ST7565_SequencerDisplay.h	Mon Nov 14 06:03:51 2016 +0000
+++ b/ST7565_SequencerDisplay.h	Thu Nov 17 07:22:42 2016 +0000
@@ -96,10 +96,20 @@
     void drawSequencePattern() {
         char buff[32];
         sprintf(buff, "%02d", this->getSequencePattern());
-        gLCD->drawstring(115, 2, "SQ");
+        gLCD->drawstring(115, 2, "PT");
         gLCD->drawstring(115, 3, buff);
     }
     
+    void drawWaveShape() {
+        char *str;
+        if (this->getWaveShape() == 0) {
+            str = "SQ";
+        } else {
+            str = "SW";
+        }
+        gLCD->drawstring(115, 5, str);
+    }
+    
     virtual void displayWhileStop(int editingStep, int runningStep) {
         gLCD->clear();
         
@@ -107,7 +117,8 @@
         drawNoteGrid();
         drawRunningStep(runningStep);
         drawOctave();
-        drawSequencePattern();       
+        drawSequencePattern();
+        drawWaveShape();
 
         gLCD->display();
     };
@@ -120,6 +131,7 @@
         drawRunningStep(runningStep);
         drawOctave();
         drawSequencePattern();
+        drawWaveShape();
         
         gLCD->display();
     }