public SSD1603Configuration(Screen screen) { Screen = screen; CommonPinConfiguration = CommonPinConfigurationOptions.Sequential | CommonPinConfigurationOptions.RemapDisabled; IsSegmentRemapped = false; IsCommonScanDirectionRemapped = false; DisplayOffset = 0x00; DisplayStartLine = SSD1603.HardwareConfigurationCommands.DisplayStartLineMin; MultiplexRatio = (byte)(screen.HeightInPixel - 1); NumberOfPages = (byte)(screen.HeightInPixel / 8); MemoryAddressingMode = MemoryAddressingModes.HorizontalAddressingMode; StartPageAddress = 0x00; EndPageAddress = (byte)(NumberOfPages - 1); StartColumnAddress = 0x00; EndColumnAddress = (byte)(screen.WidthInPixel - 1); Contrast = 0x1F; PreChargePreiod = 0xF1; ComDeselectVoltageLevel = ComDeselectVoltageLevels.Percent83VCC; DivdeRatioAndOscillatorFreuency = 0x80; ChargePumpEnabled = true; }
public SSD1603Configuration(Screen screen) { Screen = screen; CommonPinConfiguration = CommonPinConfigurationOptions.Sequential | CommonPinConfigurationOptions.RemapDisabled; IsSegmentRemapped = false; IsCommonScanDirectionRemapped = false; DisplayOffset = 0x00; DisplayStartLine = SSD1603.HardwareConfigurationCommands.DisplayStartLineMin; MultiplexRatio = (byte)(screen.HeightInPixel - 1); NumberOfPages = (byte)(screen.HeightInPixel / 8); MemoryAddressingMode = MemoryAddressingModes.HorizontalAddressingMode; StartPageAddress = 0x00; EndPageAddress = (byte)(NumberOfPages - 1); StartColumnAddress = 0x00; EndColumnAddress = (byte)(screen.WidthInPixel - 1); Contrast = 0x1F; PreChargePreiod = 0xF1; ComDeselectVoltageLevel = ComDeselectVoltageLevels.Percent83VCC; DivdeRatioAndOscillatorFreuency = 0x80; ChargePumpEnabled = true; }