rpi

package
v0.0.0-...-58b2e9f Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package rpi provides Raspberry Pi (including A+/B+) support. The following features are supported on Linux kernel 3.8+

GPIO (digital (rw)) I²C LED W1 - make sure that w1-gpio kernel module is loaded. If you wish to use it with sensors directly (e.g. DS18B20 etc)

make sure to disable respective kernel modules (e.g. w1-therm) in /etc/modprobe.d/blacklist.conf.

Index

Constants

View Source
const (
	// PWMDefaultPolarity represents the default polarity (Positve or 1) for pwm.
	PWMDefaultPolarity = embd.Positive

	PWMDefaultDuty = 500000000

	PWMDefaultPeriod = 1000000000

	PWMMinPulseWidth = 1090
	PWMMaxPulseWidth = 1000000000
)

Variables

This section is empty.

Functions

func NewW1Bus

func NewW1Bus(l byte) embd.W1Bus

Types

This section is empty.

Jump to

Keyboard shortcuts

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