hd44780

package
v2.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hd44780 controls the Hitachi LCD display chipset HD-44780

Datasheet

https://www.sparkfun.com/datasheets/LCD/HD44780.pdf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dev

type Dev struct {
	// contains filtered or unexported fields
}

Dev is the 4-bit addressing device for HD-44780

func New

func New(data []gpio.PinOut, rs, e gpio.PinOut) (*Dev, error)

New creates and initializes the LCD device

data - references to data pins
rs - rs pin
e - strobe pin

func (*Dev) Halt

func (r *Dev) Halt() error

Halt clears the LCD screen

func (*Dev) Print

func (r *Dev) Print(data string) error

Print the data string

data string to display

func (*Dev) Reset

func (r *Dev) Reset() error

Reset resets the HC-44780 chipset, clears the screen buffer and moves cursor to the home of screen (line 0, column 0).

func (*Dev) SetCursor

func (r *Dev) SetCursor(line uint8, column uint8) error

SetCursor positions the cursor

line - screen line, 0-based
column - column, 0-based

func (*Dev) String

func (r *Dev) String() string

func (*Dev) WriteChar

func (r *Dev) WriteChar(data uint8) error

WriteChar writes a single byte (character) at the cursor position.

data - character code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL