Display Class for BaseMachine

Revision:
6:ec1d00fa9835
Parent:
5:6264a3682865
Child:
7:13a13dd9a00b
--- a/ST7565_SequencerDisplay.h	Fri Aug 26 07:23:27 2016 +0000
+++ b/ST7565_SequencerDisplay.h	Sun Aug 28 07:40:02 2016 +0000
@@ -20,7 +20,7 @@
         gLCD(_gLCD) {};
         
 protected:
-    virtual void displayWhileRun(int step) {
+    virtual void displayWhileStop(int step) {
         int x, y;
         int i;
 
@@ -34,7 +34,7 @@
             gLCD->drawline(0, y * 3, 112, y * 3, 1);
         }
 
-        gLCD->fillrect(step * 7, 0, 7, 3, 1);
+        gLCD->fillrect(step * 7, 1, 7, 2, 1);
 
         // Sequence Grid
         for (x = 0; x <= 16; x++) {
@@ -108,8 +108,17 @@
         gLCD->display();
     };
     
-    virtual void displayWhileStop(int step) {
-        displayWhileRun(step);
+    virtual void displayWhileRun(int step) {
+        gLCD->fillrect((step-1) * 7, 1, 7, 1, 0);
+        gLCD->fillrect(step * 7, 1, 7, 1, 1);
+        //gLCD->display();
+        /*
+        char buff[32];
+        sprintf(buff, "%d ", step);
+        gLCD->clear();
+        gLCD->drawstring(0, 0, buff);
+        gLCD->display();
+        */
     }
     
     void displayParams(int step) {