leds

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LD1  LED = 0x06 // P0.06
	LD2R LED = 0x08 // P0.08
	LD2G LED = 0x19 // P1.09
	LD2B LED = 0x0C // P0.12

	User  = LD1
	Red   = LD2R
	Green = LD2G
	Blue  = LD2B
)

Onboard LEDs

Variables

This section is empty.

Functions

This section is empty.

Types

type LED

type LED uint8

func (LED) Get

func (d LED) Get() int

func (LED) Pin

func (d LED) Pin() gpio.Pin

func (LED) Set

func (d LED) Set(on int)

func (LED) SetOff

func (d LED) SetOff()

func (LED) SetOn

func (d LED) SetOn()

Jump to

Keyboard shortcuts

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