1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-29 13:49:14 +08:00
hybridgroup.gobot/driver.go
Thomas Kohler dc4b940834
Build(v2): revert move to v2 subfolder (#932) (#938)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:39:03 +02:00

21 lines
498 B
Go

package gobot
// Driver is the interface that describes a driver in gobot
type Driver interface {
// Name returns the label for the Driver
Name() string
// SetName sets the label for the Driver
SetName(s string)
// Start initiates the Driver
Start() error
// Halt terminates the Driver
Halt() error
// Connection returns the Connection associated with the Driver
Connection() Connection
}
// Pinner is the interface that describes a driver's pin
type Pinner interface {
Pin() string
}