Cmdwrite(COM0); // DISP START LINE SET, COM0=0x40-0x7F
Cmdwrite(BS); //LCD Bias Set, 0xA2=1/9, 0xA3=1/7
Cmdwrite(MX); //Segment Driver Direction Select 0xA0=NORMAL, 0xA1=REVERSE(a0)
Cmdwrite(MY); //Common Output Mode Select,0xC0=COM0-COM63,0xC8=COM63-COM0(c8)
Cmdwrite(INV);