public void WritePage(int page, byte[] scan) { _serialInterface.Command( Command.SETHIGHCOLUMN, Command.SETLOWCOLUMN + 2, // SH1106 is made for 132x64, but usually only has 128x64 connected to it (byte)(Command.SETPAGEADDRESS | page)); _serialInterface.Data(scan); }
public void WritePage(int page, byte[] scan) { const byte setPageAddress = 0xB0; _serialInterface.Command( (byte)(setPageAddress + page), 0x02, 0x10 ); _serialInterface.Data(scan); }