viam_gripper_gpio

package module
v0.0.0-...-03d7d86 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

viam-gripper-gpio

https://app.viam.com/module/erh/gripper-gpio

example config

{
  "board": "local",
  "pin": "37"
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GripperModel = resource.ModelNamespace("erh").WithFamily("viam_gripper_gpio").WithModel("gripper")
View Source
var GripperPressModel = family.WithModel("gripper-press")

Functions

This section is empty.

Types

type Config

type Config struct {
	Board    string
	Pin      string
	OpenHigh bool `json:"open_high"`
}

func (*Config) Validate

func (cfg *Config) Validate(path string) ([]string, error)

type ConfigPress

type ConfigPress struct {
	Board   string
	Pin     string
	Seconds int
}

func (*ConfigPress) Validate

func (cfg *ConfigPress) Validate(path string) ([]string, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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