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 static SSD1603Configuration CreateConfiguration(Screen screen) { return new SSD1603Configuration(screen); }
public SSD1603(Screen screen, SpiDevice device, GpioPin pinCmdData, GpioPin pinReset = null) : this(new SSD1603Configuration(screen), device, pinCmdData, pinReset) { }