leds

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LD1 LED = 0x27 // PC7
	LD2 LED = 0x17 // PB7
	LD3 LED = 0x1E // PB14

	Green = LD1
	Blue  = LD2
	Red   = LD3

	User = LD3
)

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()

func (LED) Toggle added in v0.12.1

func (d LED) Toggle()

Jump to

Keyboard shortcuts

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