matrix

package
v0.0.0-...-6d56c61 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddObserver

func AddObserver(id string, ch chan common.MatrixData)

AddObserver ...

func Push

func Push(d *common.MatrixData) (err error)

Push expose the data channel

func RemoveObserver

func RemoveObserver(id string)

RemoveObserver ...

Types

type SenseHatMatrix

type SenseHatMatrix struct {

	// Mutex
	Mux sync.RWMutex
	// contains filtered or unexported fields
}

SenseHatMatrix ...

var Matrix SenseHatMatrix

Matrix ...

func (*SenseHatMatrix) Init

func (mx *SenseHatMatrix) Init(wait *sync.WaitGroup)

Init

func (*SenseHatMatrix) Run

func (mx *SenseHatMatrix) Run()

Run ...

func (*SenseHatMatrix) Shutdown

func (mx *SenseHatMatrix) Shutdown()

Jump to

Keyboard shortcuts

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