예제 #1
0
파일: Definition.cs 프로젝트: q-life/Q.IoT
            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;
            }
예제 #2
0
파일: SSD1603.cs 프로젝트: q-life/Q.IoT
 public static SSD1603Configuration CreateConfiguration(Screen screen)
 {
     return new SSD1603Configuration(screen);
 }
예제 #3
0
파일: SSD1603.cs 프로젝트: q-life/Q.IoT
 public SSD1603(Screen screen, SpiDevice device, GpioPin pinCmdData, GpioPin pinReset = null) : this(new SSD1603Configuration(screen), device, pinCmdData, pinReset)
 {
 }