Display Class for BaseMachine
Diff: ST7565_SequencerDisplay.h
- Revision:
- 8:2a06c35302e7
- Parent:
- 7:13a13dd9a00b
- Child:
- 9:a8adc9b9b3d8
--- a/ST7565_SequencerDisplay.h Fri Sep 09 02:49:40 2016 +0000 +++ b/ST7565_SequencerDisplay.h Fri Sep 09 03:13:57 2016 +0000 @@ -17,7 +17,8 @@ public: ST7565_SequencerDisplay(ST7565* _gLCD, Sequence* _sequences, int _sequenceNum) : SequencerDisplay(_sequences, _sequenceNum), - gLCD(_gLCD) {}; + gLCD(_gLCD), + runningStep(0) {}; protected: virtual void displayWhileStop(int step) { @@ -109,16 +110,20 @@ }; virtual void displayWhileRun(int step) { - gLCD->clear(); - //gLCD->fillrect((step-1) * 7, 1, 7, 1, 0); + /* + //gLCD->clear(); + gLCD->fillrect(runningStep * 7, 1, 7, 1, 0); // 前回のrunningStepインディケータを消去 gLCD->fillrect(step * 7, 1, 7, 1, 1); + runningStep = step; //gLCD->display(); - char buff[32]; - sprintf(buff, "%d ", step); + //char buff[32]; + //sprintf(buff, "%d ", step); //gLCD->clear(); - gLCD->drawstring(0, 0, buff); + //gLCD->drawstring(0, 0, buff); gLCD->display(); + */ + displayWhileStop(step); } void displayParams(int step) { @@ -135,6 +140,7 @@ private: ST7565* gLCD; + int runningStep; };