servos

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPIO

type GPIO uint
const (
	GPIO_17 GPIO = 17
	GPIO_18 GPIO = 18
	GPIO_27 GPIO = 27
	GPIO_22 GPIO = 22
	GPIO_23 GPIO = 23
	GPIO_24 GPIO = 24
	GPIO_25 GPIO = 25
	GPIO_04 GPIO = 4
	GPIO_02 GPIO = 2
	GPIO_03 GPIO = 3
	GPIO_08 GPIO = 8
)

Use the GPIO number as BCM xx See https://github.com/sarfata/pi-blaster#how-to-use

type ServoSupport

type ServoSupport struct {
	Enabled    bool   `json:"enabled" mapstructure:"enabled"`
	Registered []GPIO `json:"registered" mapstructure:"registered"`
}

func (*ServoSupport) IsEnabled added in v0.0.21

func (s *ServoSupport) IsEnabled() bool

func (*ServoSupport) Register added in v0.0.21

func (s *ServoSupport) Register(gpio GPIO) bool

func (ServoSupport) String added in v0.0.22

func (c ServoSupport) String() string

Jump to

Keyboard shortcuts

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