Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polarspetroll/liquidcrystalrpi
Liquid Crystal LCD Library(I²C)
https://github.com/polarspetroll/liquidcrystalrpi
golang i2c lcd liquid-crystals raspberry-pi
Last synced: about 2 months ago
JSON representation
Liquid Crystal LCD Library(I²C)
- Host: GitHub
- URL: https://github.com/polarspetroll/liquidcrystalrpi
- Owner: polarspetroll
- License: mit
- Created: 2022-01-21T18:45:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-28T10:27:46.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T12:03:16.254Z (7 months ago)
- Topics: golang, i2c, lcd, liquid-crystals, raspberry-pi
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LiquidCrystalRPI
A simple LCD controller package for raspberry pi liquid crystal I²C displays.## Example
```go
import (
"log"
"time"lcd "github.com/polarspetroll/LiquidCrystalRPI"
)func main() {
l, err := lcd.NewLCD(0x27, 16, 2) // specify the I²C device address, width and height
if err != nil {
log.Fatal(err)
}/* You can also use the default configuration like so :
l := lcd.DefaultLCD
*/
l.Print("Hello World!", 1) // print 'Hello World' at line 1
l.Print("Second Line", 2) // print 'Second Line' at line 2
time.Sleep(3 * time.Second)
l.Clear() // clear the display
time.Sleep(3 * time.Second)
l.BackLightOff() // turn off backlight
time.Sleep(2 * time.Second)
l.BackLightOn() //turn on backlight
}```
---#### Features
- Scrolling text
- Backlight control
- Printing on a specific line
- Custom characters