Skip to content

pacomont/go-hd44780

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-hd44780

Simple library for Hitachi HD44780 LCD Display and Golang.

Dedicated for use in Raspberry Pi and lcd connected to GPIO-ports / I2C in 4-bit mode.

MOD: for a 20x4 Display by GPIO-ports

Dependency

  • github.com/stianeikeland/go-rpio
  • github.com/zlowred/embd (github.com/kidoman/embd)

Example

lcd := hd44780.NewGPIO4bit()
if err := l.lcd.Open(); err != nil {
	panic("Can't open lcd: " + err.Error())
}
lcd.DisplayLines("line1\nline2")
lcd.Close()

For I2C use NewI2C4bit(addr).

License

Copyright (c) 2015 Karol Będkowski.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Wraper over embd/go-rpio for hd44780

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%