Documentation
¶
Overview ¶
Package picommon contains shared information for supported and non-supported pi boards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModelName = resource.NewDefaultModel("pi")
ModelName is the name used refer to any implementation of a pi based component.
Functions ¶
This section is empty.
Types ¶
type ServoConfig ¶
type ServoConfig struct { Pin string `json:"pin"` Min int `json:"min,omitempty"` Max int `json:"max,omitempty"` StartPos *float64 `json:"starting_position_degs,omitempty"` HoldPos *bool `json:"hold_position,omitempty"` // defaults True. False holds for 500 ms then disables servo BoardName string `json:"board"` }
ServoConfig is the config for a pi servo.
Click to show internal directories.
Click to hide internal directories.