piblaster

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package piblaster implements interfacing code is piblaster.

See https://github.com/sarfata/pi-blaster for more details. This package relies on pi-blaster being installed and enabled.

TODO(maruel): "dtoverlay=pwm" or "dtoverlay=pwm-2chan" works without having to install anything, albeit with less pins supported.

Warning

piblaster doesn't report what pins is controls so it is easy to misuse this library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleasePWM

func ReleasePWM(p gpio.PinIO) error

ReleasePWM releases a GPIO output and leave it floating.

This function must be called on process exit for each activated pin otherwise the pin will stay in the state.

func SetPWM

func SetPWM(p gpio.PinIO, duty float32) error

SetPWM enables and sets the PWM duty on a GPIO output pin via piblaster.

duty must be [0, 1].

Types

This section is empty.

Jump to

Keyboard shortcuts

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