I don't know if you are using GitHub. Please try this to alter the scan lines:
from this:
WriteCmdData(0x01, GS | SS_v | (_lcd_ID == 0x0139 ? 0x27 : 0x28)); // set Driver Output Control
replace with this:
WriteCmdData(0x01, GS | SS_v | (_lcd_ID == 0x0139 ? 0x28 : 0x28)); // set Driver Output Control
The S6D0139 Vertical Scroll works differently. The datasheet is unclear.
from this:
case 0x0139:
#if 0 //disable scroll
WriteCmdData(0x42, sea); //SEA
WriteCmdData(0x43, top); //SSA
WriteCmdData(0x41, vsp - top); //VL# check vsp
#endif
break;
to this:
case 0x0139:
#if 1 //enable scroll
WriteCmdData(0x42, sea); //SEA
WriteCmdData(0x43, top); //SSA
WriteCmdData(0x41, vsp - top); //VL# check vsp
#endif
break;
You may need to uncomment VLE1:
// 0x0007, 0x0217, //Display Control: VLE1=1, SPT=0, GON=1, REV=1, D=3
};
init_table16(S6D0139_regValues, sizeof(S6D0139_regValues));
I am assuming you know how to edit a file. Life is much simpler if you could say whether you have a GitHub client.
David.