Version: v0.0.0-...-06b8776 Latest Latest

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

Go to latest
Published: Sep 8, 2017 License: Apache-2.0 Imports: 4 Imported by: 0



Package display is a driver for Grove LCD RGB backlight display.

More information about the display is at http://wiki.seeed.cc/Grove-LCD_RGB_Backlight/. This package is ported from a reference Python package, see https://goo.gl/VI59c8.



This section is empty.


This section is empty.


This section is empty.


type Device

type Device struct {
	// contains filtered or unexported fields

Device represents an Grove LCD RGB Backlight device.

func Open

func Open(o driver.Opener) (*Device, error)

Open opens a connection the the RGB backlight display. Once display is no longer in-use, it should be closed by Close.

func (*Device) Clear

func (d *Device) Clear() error

Clear clears the screen.

func (*Device) Close

func (d *Device) Close() error

Close closes connection to the device.

func (*Device) SetRGB

func (d *Device) SetRGB(r, g, b int) error

SetRGB sets the backlight to the given color.

func (*Device) SetText

func (d *Device) SetText(text string) error

SetText clears the screen and prints the given text on the display.

Source Files

Jump to

Keyboard shortcuts

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