Toolbox.NETMF.Hardware.Hd44780Lcd


Toolbox.NETMF.Hardware.Hd44780Lcd(Data, ClockEnablePin, RegisterSelectPin, ReadWritePin, Columns, Rows))
  • Data A parallel port to which LCD data must be sent
  • ClockEnablePin Reference to the Clock Enable (E) pin on the display
  • RegisterSelectPin Reference to the Register Select (RS) pin on the display
  • ReadWritePin Reference to the Read Write (RW) pin on the display (optional)
  • Columns The amount of columns on the display (default: 16)
  • Rows The amount of rows on the display (default: 2)

Toolbox.NETMF.Hardware.Hd44780Lcd(Data4, Data5, Data6, Data7, ClockEnablePin, RegisterSelectPin, ReadWritePin, Columns, Rows))
  • Data4 Reference to the Data Bit 4 (DB4) pin on the display
  • Data5 Reference to the Data Bit 5 (DB5) pin on the display
  • Data6 Reference to the Data Bit 6 (DB6) pin on the display
  • Data7 Reference to the Data Bit 7 (DB7) pin on the display
  • ClockEnablePin Reference to the Clock Enable (E) pin on the display
  • RegisterSelectPin Reference to the Register Select (RS) pin on the display
  • ReadWritePin Reference to the Read Write (RW) pin on the display (optional)
  • Columns The amount of columns on the display (default: 16)
  • Rows The amount of rows on the display (default: 2)

Methods

  • ChangePosition(Row, Column) Changes the position of the cursor
  • ClearDisplay() Clears the entire display
  • Dispose() Frees the pins used by the LCD
  • Write(Data, CommandMode) Writes data to the display

Properties

  • BlinkPosition When true, the position of the cursor will blink
  • Characters Returns the amount of characters on the display (Rows x Columns)
  • Columns Returns the amount of columns on the display
  • Rows Returns the amount of rows on the display
  • ShowCursor When true, the cursor will be visible

How to connect

Toolbox.NETMF.Hardware.Hd44780Lcd.png

Sample code in C#

Hd44780Lcd Display = new Hd44780Lcd(
    Data4: Pins.GPIO_PIN_D4,
    Data5: Pins.GPIO_PIN_D5,
    Data6: Pins.GPIO_PIN_D6,
    Data7: Pins.GPIO_PIN_D7,
    ClockEnablePin: Pins.GPIO_PIN_D8,
    RegisterSelectPin: Pins.GPIO_PIN_D9
);

Display.ClearDisplay();
Display.Write("Hello World!");

Sample code in VB

Dim Display As Hd44780Lcd = New Hd44780Lcd(
                            Data4:=Pins.GPIO_PIN_D4,
                            Data5:=Pins.GPIO_PIN_D5,
                            Data6:=Pins.GPIO_PIN_D6,
                            Data7:=Pins.GPIO_PIN_D7,
                            ClockEnablePin:=Pins.GPIO_PIN_D8,
                            RegisterSelectPin:=Pins.GPIO_PIN_D9
                            )

Display.ClearDisplay()
Display.Write("Hello World!")

Related documents

Last edited Jan 1, 2013 at 8:26 PM by Garrcomm, version 3