mp3

package
v0.0.0-...-e13db33 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory() hal.DriverFactory

Factory returns a singleton mp3 driver factory

Types

type Config

type Config struct {
	Loop bool
	File string
}

type Driver

type Driver struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) DigitalOutputPin

func (d *Driver) DigitalOutputPin(i int) (hal.DigitalOutputPin, error)

func (*Driver) DigitalOutputPins

func (d *Driver) DigitalOutputPins() []hal.DigitalOutputPin

func (*Driver) LastState

func (d *Driver) LastState() bool

func (*Driver) Metadata

func (d *Driver) Metadata() hal.Metadata

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Number

func (d *Driver) Number() int

func (*Driver) Off

func (d *Driver) Off() error

func (*Driver) On

func (d *Driver) On() error

func (*Driver) Pins

func (d *Driver) Pins(cap hal.Capability) ([]hal.Pin, error)

func (*Driver) Write

func (d *Driver) Write(state bool) error

Jump to

Keyboard shortcuts

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