Hi
Sorry for my poor English.
I can get the names of the 8 tracks normally.
I used part of the Zeus Commander DPC Project code made by Gerrit.
The display shows the information in one line that breaks automatically at the end of the display:
Track1 Track2 Track3
Track4 Track5 Track6
Track7 Track8
What I'm trying to do without success is to show each name in a different line:
Track1
Track2
Track3
Track4
Track5
Track6
Track7
Track8
I can't create anything to slice the SysEx message into eight parts to be sent to the display.
Any ideas?
Basic code information:
Sorry for my poor English.
I can get the names of the 8 tracks normally.
I used part of the Zeus Commander DPC Project code made by Gerrit.
The display shows the information in one line that breaks automatically at the end of the display:
Track1 Track2 Track3
Track4 Track5 Track6
Track7 Track8
What I'm trying to do without success is to show each name in a different line:
Track1
Track2
Track3
Track4
Track5
Track6
Track7
Track8
I can't create anything to slice the SysEx message into eight parts to be sent to the display.
Any ideas?
Basic code information:
Code:
#include <SPI.h>
#include <Adafruit_SSD1306.h>
char messageText[112];
void handleSysEx(const byte* sysExData, uint16_t sysExSize, bool complete) {
switch (sysExData[5]) {
case 18:
display.clearDisplay();
display.setCursor(0, 0); // Pixel / Line
for (int i=7; i<sysExSize-1; i++) {
messageText[sysExData[6]+i-7] = sysExData[i];
display.print(char(messageText[i-7]));
}
}
display.display(); //
}