lcd

package module
v0.0.0-...-ddfee8b Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2013 License: MIT Imports: 2 Imported by: 0

README

gorpi-lcd

The online Adafruit LCD tutorial uses an Python example: http://learn.adafruit.com/drive-a-16x2-lcd-directly-with-a-raspberry-pi

I wanted to stick with the new language I'd been learning (Google Go).

So I found a gpio library (http://github.com/davecheney/gpio), and updated it a bit along then worked up this LCD program that you can use to drive the LCD panel.

See example files under /examples for .. well examples.

This has been tested to work with the same hardware given in the adafruit tutorial. Other hardware.. YMMV!

Documentation

Index

Constants

View Source
const (
	NEWLINE = 0xC0
)

Variables

This section is empty.

Functions

func Delay

func Delay(duration int)

func DelayMicroseconds

func DelayMicroseconds(duration int)

Types

type LCDPanel

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

func (*LCDPanel) AddDataPin

func (l *LCDPanel) AddDataPin(pin gpio.Pin)

func (*LCDPanel) CommandByte

func (l *LCDPanel) CommandByte(val byte)

mid level functions

func (*LCDPanel) Message

func (l *LCDPanel) Message(str string)

high level functions

func (*LCDPanel) MessageByte

func (l *LCDPanel) MessageByte(val byte)

func (*LCDPanel) SetEnablePin

func (l *LCDPanel) SetEnablePin(pin gpio.Pin)

func (*LCDPanel) SetRsPin

func (l *LCDPanel) SetRsPin(pin gpio.Pin)

func (*LCDPanel) Write4Bits

func (l *LCDPanel) Write4Bits(val byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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