dragonboard

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

README

DragonBoard™ 410c

The DragonBoard 410c, a product of Arrow Electronics, is the development board based on the mid-tier Qualcomm® Snapdragon™ 410E processor. It features advanced processing power, Wi-Fi, Bluetooth connectivity, and GPS, all packed into a board the size of a credit card.

How to Install

Please refer to the main README.md

Make sure you are using the latest Linaro Debian image. Both AArch32 and AArch64 work™ though you should stick to 64bit as OS internals may be different and aren't tested.

You would normally install Go and Gobot on your workstation. Once installed, cross compile your program on your workstation, transfer the final executable to your DragonBoard and run the program on the DragonBoard itself as documented here.

How to Use

Please refer to one example for your platform, e.g. dragonboard_button.go. The pin numbering used by your Gobot program should match the way your board is labeled right on the board itself. See here.

How to Connect

Compiling

Compile your Gobot program on your workstation like this:

GOARCH=arm64 GOOS=linux go build examples/dragonboard_button.go

Once you have compiled your code, you can you can upload your program and execute it on the DragonBoard from your workstation using the scp and ssh commands like this:

scp dragonboard_button root@192.168.1.xx:
ssh -t root@192.168.1.xx "./dragonboard_button"

Documentation

Overview

Package dragonboard contains the Gobot adaptor for the DragonBoard 410c

For further information refer to the chip README: https://github.com/hybridgroup/gobot/blob/master/platforms/dragonboard/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.I2cBusAdaptor
	// contains filtered or unexported fields
}

Adaptor represents a Gobot Adaptor for a DragonBoard 410c

func NewAdaptor

func NewAdaptor(opts ...func(adaptors.DigitalPinsOptioner)) *Adaptor

NewAdaptor creates a DragonBoard 410c Adaptor

Optional parameters:

adaptors.WithGpiodAccess():	use character device gpiod driver instead of sysfs
adaptors.WithSpiGpioAccess(sclk, nss, mosi, miso):	use GPIO's instead of /dev/spidev#.#

func (*Adaptor) Connect

func (c *Adaptor) Connect() error

Connect create new connection to board and pins.

func (*Adaptor) Finalize

func (c *Adaptor) Finalize() error

Finalize closes connection to board and pins

func (*Adaptor) Name

func (c *Adaptor) Name() string

Name returns the name of the Adaptor

func (*Adaptor) SetName

func (c *Adaptor) SetName(n string)

SetName sets the name of the Adaptor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL