/// <summary> /// Constructs a new HD44780 based 16x2 LCD controller, using GPIO pins. /// </summary> /// <param name="registerSelectPin">The pin that controls the regsiter select.</param> /// <param name="enablePin">The pin that controls the enable switch.</param> /// <param name="dataPins">Collection of pins holding the data that will be printed on the screen.</param> /// <param name="backlightPin">The optional pin that controls the backlight of the display.</param> /// <param name="backlightBrightness">The brightness of the backlight. 0.0 for off, 1.0 for on.</param> /// <param name="readWritePin">The optional pin that controls the read and write switch.</param> /// <param name="controller">The controller to use with the LCD. If not specified, uses the platform default.</param> public Lcd1602(int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1.0f, int readWritePin = -1, IGpioController controller = null) : base(new Size(16, 2), LcdInterface.CreateGpio(registerSelectPin, enablePin, dataPins, backlightPin, backlightBrightness, readWritePin, controller)) { }
/// <summary> /// Constructs a new HD44780 based 20x4 LCD controller. /// </summary> /// <param name="registerSelectPin">The pin that controls the regsiter select.</param> /// <param name="enablePin">The pin that controls the enable switch.</param> /// <param name="dataPins">Collection of pins holding the data that will be printed on the screen.</param> /// <param name="backlightPin">The optional pin that controls the backlight of the display.</param> /// <param name="backlightBrightness">The brightness of the backlight. 0.0 for off, 1.0 for on.</param> /// <param name="readWritePin">The optional pin that controls the read and write switch.</param> /// <param name="controller">The controller to use with the LCD. If not specified, uses the platform default.</param> /// <param name="shouldDispose">True to dispose the Gpio Controller</param> public Lcd2004(int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1.0f, int readWritePin = -1, GpioController controller = null, bool shouldDispose = true) : base(new Size(20, 4), LcdInterface.CreateGpio(registerSelectPin, enablePin, dataPins, backlightPin, backlightBrightness, readWritePin, controller, shouldDispose)) { }