board

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LD3 LED = 0x3D // PD13
	LD4 LED = 0x3C // PD12
	LD5 LED = 0x3E // PD14
	LD6 LED = 0x3F // PD15

	Orange = LD3
	Green  = LD4
	Red    = LD5
	Blue   = LD6

	UserLED = LD3
)

LEDs

Variables

This section is empty.

Functions

func Setup

func Setup(all bool)

Types

type Button

type Button uint8
const (
	B1 Button = 0x00 // PA0

	UserBtn = B1
)

Buttons

func (Button) Pin

func (b Button) Pin() gpio.Pin

func (Button) Read

func (b Button) Read() int

type LED

type LED uint8

func (LED) Get

func (d LED) Get() int

func (LED) Pin

func (d LED) Pin() gpio.Pin

func (LED) Set

func (d LED) Set(on int)

func (LED) SetOff

func (d LED) SetOff()

func (LED) SetOn

func (d LED) SetOn()

Jump to

Keyboard shortcuts

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