Documentation ¶
Index ¶
- type Board
- func NewBoard(name string, chips map[string]*chip, pins PinsMap, typeTxt string) *Board
- func NewBoardType2i(adaptor i2c.Connector, address uint8, name string) *Board
- func NewBoardType2io(adaptor i2c.Connector, address uint8, name string) *Board
- func NewBoardType2o(adaptor i2c.Connector, address uint8, name string) *Board
- func (b *Board) GetPinNumbers() (pinNumbers boardpin.PinNumbers)
- func (b *Board) GetPinNumbersOfType(pinTypes ...boardpin.PinType) (pinNumbers boardpin.PinNumbers)
- func (b *Board) GobotDevices() []gobot.Device
- func (b *Board) ReadValue(boardPinNr uint8) (value uint8, err error)
- func (b *Board) ShowBoardConfig()
- func (b *Board) String() string
- func (b *Board) WriteValue(boardPinNr uint8, value uint8) (err error)
- type DriverOperations
- type PinsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
Board is the configuration of a board
func NewBoardType2i ¶
NewBoardType2i creates a new board of type 2 with 8 inputs (negotiated read).
func NewBoardType2io ¶
NewBoardType2io creates a new board of type 2 with 4 inputs (negotiated read) and 4 outputs. Pin 0..3 are output and 4..7 are input pins.
func NewBoardType2o ¶
NewBoardType2o creates a new board of type 2 with 8 outputs.
func (*Board) GetPinNumbers ¶
func (b *Board) GetPinNumbers() (pinNumbers boardpin.PinNumbers)
GetPinNumbers gets all pins of board
func (*Board) GetPinNumbersOfType ¶
func (b *Board) GetPinNumbersOfType(pinTypes ...boardpin.PinType) (pinNumbers boardpin.PinNumbers)
GetPinNumbersOfType gets board pins of given types
func (*Board) GobotDevices ¶
GobotDevices gets all gobot devices of the board
func (*Board) ShowBoardConfig ¶
func (b *Board) ShowBoardConfig()
ShowBoardConfig prints all information of the board
Click to show internal directories.
Click to hide internal directories.