public void Show() { _serialInterface.Command( Command.DISPLAYOFF, Command.SETHIGHCOLUMN, Command.SETLOWCOLUMN, Command.SETDISPLAYSTARTLINE, Command.SETPAGEADDRESS, Command.SETCOMSCANDESC, // device dependent, Command.SETSEGMENTREMAP, // columns from left to right Command.NORMALDISPLAY, Command.SETMULTIPLEX, 0, Command.DISPLAYALLOFF, Command.SETDISPLAYOFFSET, 0, Command.SETDISPLAYCLOCKDIV, 0xF0, // +50% Fosc Command.SETPRECHARGE, 0x22, // 2 DCLKs (POR) Command.SETCOMPINS, 0x12, // sequential COM order Command.SETVCOMDESELECT, 0x20 // .635 x Vref (sets contrast?) ); }
public void Init() { _serialInterface.Command( Command.DISPLAYOFF, Command.MEMORYMODE, Command.SETLOWCOLUMN, Command.SETHIGHCOLUMN, 0xB0, Command.COMSCANDEC, Command.SETLOWCOLUMN, 0x10, 0x40, Command.SETSEGMENTREMAP, Command.NORMALDISPLAY, Command.SETMULTIPLEX, 0x3F, Command.DISPLAYALLON_RESUME, Command.SETDISPLAYOFFSET, 0x00, Command.SETDISPLAYCLOCKDIV, 0xF0, Command.SETPRECHARGE, 0x22, Command.SETCOMPINS, 0x12, Command.SETVCOMDETECT, 0x20, Command.CHARGEPUMP, 0x14 ); SetContrast(0X7F); Show(); }