pibrella

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Pibrella pins, these are BCM
	PB_PIN_LIGHT_RED    = 27
	PB_PIN_LIGHT_YELLOW = 17
	PB_PIN_LIGHT_GREEN  = 4

	// onboard buzzer
	PB_PIN_BUZZER = 18
)

Variables

This section is empty.

Functions

func Close

func Close() error

func Open

func Open() error

Types

type Light

type Light struct {
	Pin rpio.Pin
}

Light is an LED on the Pibrella board

var (
	Green, Yellow, Red Light
)
func (l Light) Blink()

func (Light) Off

func (l Light) Off()

func (Light) On

func (l Light) On()

func (Light) Stop

func (l Light) Stop()

func (Light) Toggle

func (l Light) Toggle()

Jump to

Keyboard shortcuts

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