sevenseg

package module
v0.0.0-...-17ff1fc Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: MIT Imports: 2 Imported by: 0

README

Seven Segment Display Controller

Build Status

This golang package will drive a four digit seven 7 display.

Documentation

Index

Constants

View Source
const (
	DOT   = "."
	ZERO  = "0"
	ONE   = "1"
	TWO   = "2"
	THREE = "3"
	FOUR  = "4"
	FIVE  = "5"
	SIX   = "6"
	SEVEN = "7"
	EIGHT = "8"
	NINE  = "9"
	CLEAR = "000000"
)
View Source
const SIZE = 2

Variables

This section is empty.

Functions

func NewSevenSeg

func NewSevenSeg(pinA int, pinB int, pinC int, pinD int, pinE int, pinF int, pinG int, pinH int) *sevenSeg

Types

type Display

type Display struct {
	// contains filtered or unexported fields
}

func NewDisplay

func NewDisplay(pinA int, pinB int, pinC int, pinD int, pinE int, pinF int, pinG int, pinH int, pinD4 int, pinD3 int) *Display

func (*Display) Print

func (d *Display) Print(number string)

type RaspberryPiPin

type RaspberryPiPin interface {
	ReadState() rpio.State
	WriteState(state rpio.State)
	SetMode(mode rpio.Mode)
}

func NewRaspberryPiPin

func NewRaspberryPiPin(pin int) RaspberryPiPin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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