display

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

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

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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