armoryctl

package
v0.0.0-...-57044a2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build string
View Source
var Logger *log.Logger
View Source
var Revision string

build information, initialized at compile time (see Makefile)

Functions

func ExecCommand

func ExecCommand(cmd string, args []string, root bool, input string) (output string, err error)

func GPIOSetOutput

func GPIOSetOutput(name string, high bool) (err error)

Configure a GPIO pin as output high or low.

func I2CRead

func I2CRead(bus int, addr int, reg uint8, size uint) (val []byte, err error)

func I2CWrite

func I2CWrite(bus int, addr int, reg uint8, val []byte) (err error)

func LED

func LED(name string, on bool) (err error)

func UARTWrite

func UARTWrite(path string, speed int, cmd string) (res string, err error)

func UnzipFile

func UnzipFile(src string, dst string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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