Display Class for BaseMachine
Diff: ST7565_SequencerDisplay.h
- Revision:
- 10:699beb99effe
- Parent:
- 9:a8adc9b9b3d8
- Child:
- 11:59d197b18cf5
--- a/ST7565_SequencerDisplay.h Fri Sep 09 04:19:13 2016 +0000 +++ b/ST7565_SequencerDisplay.h Mon Nov 14 06:03:51 2016 +0000 @@ -93,13 +93,21 @@ gLCD->drawstring(115, 1, buff); } + void drawSequencePattern() { + char buff[32]; + sprintf(buff, "%02d", this->getSequencePattern()); + gLCD->drawstring(115, 2, "SQ"); + gLCD->drawstring(115, 3, buff); + } + virtual void displayWhileStop(int editingStep, int runningStep) { gLCD->clear(); drawSequenceGrid(editingStep); drawNoteGrid(); drawRunningStep(runningStep); - drawOctave(); + drawOctave(); + drawSequencePattern(); gLCD->display(); }; @@ -111,6 +119,7 @@ drawNoteGrid(); drawRunningStep(runningStep); drawOctave(); + drawSequencePattern(); gLCD->display(); }