Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegoHatDriver ¶
type LegoHatDriver struct { Active bool DefaultState int gobot.Eventer // contains filtered or unexported fields }
LegoHatDriver Represents a lego hat driver
func NewLegoHatDriver ¶
func NewLegoHatDriver(a gpio.DigitalReader) *LegoHatDriver
NewLegoHatDriver returns a new LegoHatDriver
func (*LegoHatDriver) Connection ¶
func (l *LegoHatDriver) Connection() gobot.Connection
Connection returns the ButtonDrivers Connection
func (*LegoHatDriver) Halt ¶
func (l *LegoHatDriver) Halt() (err error)
Halt stops polling the button for new information
func (*LegoHatDriver) Name ¶
func (l *LegoHatDriver) Name() string
Name returns the ButtonDrivers name
func (*LegoHatDriver) SetName ¶
func (l *LegoHatDriver) SetName(n string)
SetName sets the ButtonDrivers name
func (*LegoHatDriver) Start ¶
func (l *LegoHatDriver) Start() (err error)
Emits the Events:
Push int - On button push Release int - On button release Error error - On button error
Click to show internal directories.
Click to hide internal directories.