common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button uint8

func ConnectButton

func ConnectButton(pin iomux.Pin, pull iomux.Config, mod iomux.AltFunc) Button

func (Button) Bit

func (b Button) Bit() gpio.Bit

func (Button) Pin

func (b Button) Pin() iomux.Pin

func (Button) Read

func (b Button) Read() int

type LED

type LED uint8

func ConnectLED

func ConnectLED(pin iomux.Pin, drive iomux.Config, mod iomux.AltFunc) LED

func (LED) Get

func (d LED) Get() int

func (LED) Pin

func (d LED) Pin() iomux.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

func (d LED) Toggle()

Jump to

Keyboard shortcuts

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