Documentation ¶
Overview ¶
Package nanopi contains the Gobot adaptor for the FriendlyARM NanoPi Boards.
For further information refer to nanopi README: https://github.com/hybridgroup/gobot/blob/master/platforms/nanopi/README.md
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adaptor ¶
type Adaptor struct { *adaptors.DigitalPinsAdaptor *adaptors.PWMPinsAdaptor *adaptors.I2cBusAdaptor *adaptors.SpiBusAdaptor // contains filtered or unexported fields }
Adaptor represents a Gobot Adaptor for the FriendlyARM NanoPi Boards
func NewNeoAdaptor ¶
NewNeoAdaptor creates a board adaptor for NanoPi NEO
Optional parameters:
adaptors.WithGpiodAccess(): use character device gpiod driver instead of sysfs (still used by default) adaptors.WithSpiGpioAccess(sclk, nss, mosi, miso): use GPIO's instead of /dev/spidev#.# adaptors.WithGpiosActiveLow(pin's): invert the pin behavior adaptors.WithGpiosPullUp/Down(pin's): sets the internal pull resistor adaptors.WithGpiosOpenDrain/Source(pin's): sets the output behavior adaptors.WithGpioDebounce(pin, period): sets the input debouncer adaptors.WithGpioEventOnFallingEdge/RaisingEdge/BothEdges(pin, handler): activate edge detection
Click to show internal directories.
Click to hide internal directories.