serial

package module
v0.0.0-...-7d4f8a7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gold

Build Status

Library Golang Line Display

Description

Library line displays based on Firich,Datecs (serial port)

Supported

[+] Firich Command (partially)
[ ] Datecs Command

Quick start

	config := map[string]interface{}{
		"Name": "/dev/ttyUSB0",
		"Baud": 9600,
	}
	linedsp, err := display.Open("serial", config)
	if err != nil {
		log.Fatal(err)
	}
	dsp, err := linedsp.GetDisplay(&firich.FirichProtocol{})
	if err != nil {
		log.Fatal(err)
	}
	defer dsp.Close()
	dsp.SetEncoding(charmap.CodePage866)
	if err := dsp.Init(); err != nil {
		fmt.Println(err)
	}
	dsp.PrintRow(1, "Price:10$ Quant:2")
	dsp.PrintRow(2, "Total:20$")

License

MIT

Author

Arteev Aleksey

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerialDriver

type SerialDriver struct {
}

func (*SerialDriver) GetDisplay

func (d *SerialDriver) GetDisplay(protocol driver.Protocol, config map[string]interface{}) (driver.Display, error)

Directories

Path Synopsis
serial
com

Jump to

Keyboard shortcuts

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