devboard/

directory
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: BSD-3-Clause

README

Support for nRF5 development boards

Supported boards

pca10059

Nordic nRF52840-Dongle (PCA10059)

Nordic nRF52840-Dongle

Directory structure

Every supported board has its directory here. Each of them contains three subdirectories:

board

The board directory contains Go packages that provide the interface to the peripherals available on the board such as buttons, LEDs, etc. There is also an init package that imported configures the whole system for typical usage. Usually you don't need to import it explicitly because any other package in the board directory imports init itself to ensure proper operation.

doc

The doc directory may contain documentation, diagrams, photos and other useful resources.

examples

The examples directory contains simple programs that demonstrate how to use the available Go packages to work with the board and various external peripherals connected to it.

Directories

Path Synopsis
pca10059
examples/display
Display draws on the connected display.
Display draws on the connected display.
examples/gctest
This example forces the garbage collector to work hard and periodically prints statistics of the memory allocator.
This example forces the garbage collector to work hard and periodically prints statistics of the memory allocator.
examples/spim
This example tests SPIM peripheral.
This example tests SPIM peripheral.
examples/uart
This example shows how to use the UART peripheral.
This example shows how to use the UART peripheral.
examples/uarte
This example shows how to use the UARTE peripheral.
This example shows how to use the UARTE peripheral.
examples/voltmeter
This code shows how to use SAADC to implement a simple voltmeter.
This code shows how to use SAADC to implement a simple voltmeter.

Jump to

Keyboard shortcuts

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